Method and device for constructing elliptical curves

ABSTRACT

A random number generating unit generates a random number t. An elliptic curve setting unit defines an elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3−3x+t. An elliptic curve finitude judging unit judges whether orders m 1  and m 2  of respective elliptic curves Ep 1  and Ep 2  produced by reducing the elliptic curve E on a rational number field modulo primes p 1  and p 2  are relatively prime. An elliptic curve order computing unit computes an order of the elliptic curve E. An elliptic curve condition judging unit judges the security of the elliptic curve E based on the computed order.

[0001] This application is based on an application No. H11-15592 filed in Japan, the content of which is hereby incorporated by reference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] The present invention relates to elliptic curve arithmetic operation techniques and elliptic curve application techniques.

[0004] 2. Description of the Prior Art

[0005] In recent years, the use of elliptic curves is becoming popular in the encrypted communications technology. Cryptosystems that employ elliptic curves rely for their security on the difficulty of solving a discrete logarithm problem.

[0006] Representative examples of the discrete logarithm problem are problems based on finite fields and problems based on elliptic curves. Such problems are described in detail in Neal Koblitz, A Course in Number Theory and Cryptography, Springer-Verlag (1987).

[0007] (Elliptic Curve Discrete Logarithm Problem)

[0008] The elliptic curve discrete logarithm problem is the following.

[0009] Let E(GF(p)) be an elliptic curve defined over a finite field GF(p), with a point G on the elliptic curve E, given when the order of E is divisible by a large prime, being set as a base point. Here, “the order of the elliptic curve” means the number of points on the elliptic curve whose coordinates are in GF(p). This being so, the problem is to find an integer x such that

Y=xG

[0010] where Y is a given point on E, if such an integer x exists.

[0011] Here, p is a prime and GF(p) contains p elements.

[0012] (Conditions for Secure Elliptic Curves)

[0013] Given that various cryptanalysis attacks against elliptic curve discrete logarithm problems have been devised over the years, it is of great importance to construct a secure elliptic curve to strengthen the elliptic curve cryptosystem against these attacks.

[0014] In this specification, “constructing an elliptic curve” roughly means to determine the parameters a and b of an elliptic curve which is given by an equation

y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b

[0015] where the sign {circumflex over ( )}represents a repeated multiplication, such as x{circumflex over ( )}3=x×x×x.

[0016] To be secure against all existing cryptanalysis attacks, an elliptic curve over the finite field GF(p) must satisfy the conditions:

[0017] (a) the order of the elliptic curve is not equal to any of p−1, p, and p+1; and

[0018] (b) the order of the elliptic curve has a large prime factor.

[0019] In other words, checking the order of the elliptic curve allows the security of the elliptic curve to be assessed.

[0020] According to T. Okamoto & K. Ohta Encryption, Zero Knowledge Proof, and Number Theory, Kyoritsu (1995), pp.155˜156, when the above conditions are satisfied, computation time required to solve the elliptic curve discrete logarithm problem is exponential time in the largest prime factor of the elliptic curve order.

[0021] (Methods of Constructing Elliptic Curves)

[0022] There are mainly two elliptic curve construction methods that are:

[0023] {circle over (1)} elliptic curve construction using the CM (Complex Multiplication) method; and

[0024] {circle over (2)} elliptic curve construction using an order computation algorithm.

[0025] Although {circle over (1)} can construct an elliptic curve easily, it cannot choose an elliptic curve at random. For details of this method, see A. Miyaji “On Ordinary Elliptic Curve Cryptosystems” ASIACRYPT'91, Springer-Verlag (1991), pp.460-469. Meanwhile, {circle over (2)} can construct a random elliptic curve, though it takes considerable time to do so.

[0026] (Prior Art Example 1: Elliptic Curve Construction Using an Order Computation Algorithm)

[0027] The following introduces the method of constructing an elliptic curve using an algorithm to compute the order of the elliptic curve, with reference to FIG. 1. For details on this method, see N. Koblitz “Elliptic Curve Implementation of Zero-Knowledge Blobs” J. Cryptology, vol.4, no.3 (1991), pp.207˜213.

[0028] First, a random number is generated (S901), and parameters which define the elliptic curve are generated using the random number (S902). Next, the order of the elliptic curve is computed using the generated parameters (S903). The computed order is checked whether it satisfies one or more predetermined conditions for secure elliptic curves, to assess the security of the elliptic curve (S904). If and only if the order satisfies the conditions, the generated elliptic curve parameters are outputted. If the order does not satisfy the conditions, the procedure returns to step S901 to repeat the random number generation, the parameter generation, the order computation, and the security judgement, until an elliptic curve whose order satisfies the conditions in step S904 is found.

[0029] This method which employs an order computation algorithm requires long computation time. Especially, it takes much time to compute the order of the elliptic curve.

[0030] One example of algorithms used to compute orders of elliptic curves is an algorithm proposed by Schoof. This algorithm is a polynomial time algorithm. The polynomial time algorithm referred to here is an algorithm whose computation time is polynomial time. The computation time of Schoof's algorithm per se is not practical.

[0031] (Prior Art Example 2: Elliptic Curve Order Computation According to the SEA Algorithm)

[0032] Atkin and Elkies have proposed several improvements of Schoof's algorithm and so have designed the SEA (Schoof-Elkies-Atkin) algorithm.

[0033] This algorithm is detailed in R. Lercier & F. Morain “Counting the Number of Points on Elliptic Curves over Finite Fields: Strategies and Performances” EUROCRYPT'95, Springer-Verlag (1995), pp.79˜94.

[0034] The SEA algorithm computes t mod L{circumflex over ( )}n (n=1, 2, 3, . . . ). This can be done by calculating an eigenvalue of a map called the Frobenius map. More specifically, k is found from an equation

(α{circumflex over ( )}p,β{circumflex over ( )}p)=k(α,β)

[0035] where (α,β) is an L-division point on an elliptic curve E and k(α,β) is a point on E after exponentiating the point (α,β) by k. This is carried out through computation on the elliptic curve E on a residue class ring of polynomials in variable α and β with elements of GF(p) as coefficients, the moduli of the ring being polynomials β{circumflex over ( )}2−f(α) and h(α). Computational complexity of the inversion of a polynomial is greater than computational complexity of the multiplication of a polynomial, so that a 3-tuple coordinate is used in this computation. Here, projective coordinate is employed as the 3-tuple coordinate, as the projective coordinate has been conventionally used for elliptic curves over finite fields. Conventional projective coordinate is described in Miyaji, Ono & Cohen “Efficient Elliptic Curve Exponentiation” Advances in Cryptology-Proceedings of ICICS'97, Lecture Notes in Computer Science, Springer-Verlag (1997), pp.282-290.

[0036] (Prior Art Example 3: Calculation of the Exponentiation Point k(α,β) on the Elliptic Curve E)

[0037] Exponentiating the point (α,β) on the elliptic curve E by k is done by splitting the exponentiation into additions and doublings and performing the additions and the doublings in the following way.

[0038] Suppose (α,β) is transformed to (α:β:1), and (α:β:1) is interpreted as (X(α):β×Y(α):Z(α)) (where X(α)=α and Y(α)=Z(α)=1).

[0039] Note here that “( , )” and “( : : )” represent affine coordinates and protective coordinates, respectively.

[0040] Assume

P 1=(X 1(α):β×Y 1(α):Z 1(α))

P 2=(X 2(α):β×Y 2(β):Z 2(α))

P 3=P 1+P 2=(X 3(α):β×Y 3(α):Z 3(α))

[0041] In this specification, the operators x and * in an addition formula or a doubling formula both denote a multiplication. In the addition formula or the doubling formula, a multiplication which appears for the first time in the formula is expressed by the operator *, whereas a multiplication which has already appeared is expressed by the operator x. The number of multiplications in the addition or doubling formula can be obtained by counting the number of operators * in the formula.

[0042] (1) Addition Formula

[0043] When P1≠±P2, addition is required, the formula of which is

X 3=v*A

Y 3=u*(v{circumflex over ( )}2×X 1×Z 2−A)−v{circumflex over ( )}3*(Y 1×Z 2)

Z 3=v{circumflex over ( )}3*(Z 1×Z 2)

[0044] where

u=Y 2*Z 1−Y 1*Z 2

v=X 2*Z 1−X 1*Z 2 $\begin{matrix} {A = {{{u\hat{}2} \times {f(\alpha)} \times {Z1} \times {Z2}} - {v\hat{}3} - {2 \times {v\hat{}2} \times {X1} \times {Z2}}}} \\ {= {{\left( {\left( {u*u} \right)*{f(\alpha)}} \right)*\left( {{Z1}*{Z2}} \right)} - {\left( {v*v} \right)*v} - {2 \times {v\hat{}2}*\left( {{X1} \times {Z2}} \right)}}} \end{matrix}$

[0045] and

f(x)=x{circumflex over ( )}3+ax+b

[0046] It is to be noted that, although X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, u, v, and A are polynomials in the variable a and therefore should be written like X1(α), Y1(α), and Z1(α) to be precise, (α) has been omitted here for convenience in writing.

[0047] (2) Doubling Formula

[0048] When P1=P2, doubling is required, the formula of which is $\begin{matrix} {{X3} = {2 \times h*\left( {s \times {f(\alpha)}} \right)}} \\ {{Y3} = {{w \times \left( {{4 \times B} - h} \right)} - {8 \times {{Y1}\hat{}2} \times {s\hat{}2} \times {{f(\alpha)}\hat{}2}}}} \\ {= {{w*\left( {{4 \times B} - h} \right)} - {8 \times \left( {{Y1} \times s \times {f(\alpha)}} \right)*\left( {{Y1} \times s \times {f(\alpha)}} \right)}}} \\ {{Z3} = {8 \times {s\hat{}3} \times {{f(\alpha)}\hat{}2}}} \\ {= {8 \times s*\left( {s \times {f(\alpha)}} \right)*\left( {s \times {f(\alpha)}} \right)}} \end{matrix}$

[0049] where $\begin{matrix} {w = {{a \times {{Z1}\hat{}2}} + {3 \times {{X1}\hat{}2}}}} \\ {= {{a \times \left( {{Z1}*{Z1}} \right)} + {3 \times \left( {{X1}*{X1}} \right)}}} \\ {s = {{Y1}*{Z1}}} \\ {B = {{X1}*\left( {{Y1}*\left( {s*{f(\alpha)}} \right)} \right)}} \\ {h = {{w\hat{}2} - {8 \times B}}} \\ {= {{w*w} - {8 \times B\quad {and}}}} \\ {{f(x)} = {{x\hat{}3} + {a\quad x} + b}} \end{matrix}$

[0050] As with the addition formula, though X1, Y1, Z1, X3, Y3, Z3, w, s, B, and h are polynomials in the variable α, (α) is omitted for convenience in writing.

[0051] The number of multiplications is 15 in the addition formula and 12 in the doubling formula, as can be seen from the number of operators * in each of the formulas. When computational complexity of a polynomial multiplication is measured as 1×PMul, the computational complexity of the addition is 15×PMul and the computational complexity of the doubling is 12×PMul.

[0052] In counting the number of multiplications, computational complexity of multiplying a constant and a polynomial, such as a×(Z1{circumflex over ( )}2) or 3×(X1{circumflex over ( )}2), is smaller than computational complexity of multiplying a polynomial and a polynomial, so that such a multiplication is ignored in the counting. Likewise, a multiplication which has once appeared does not have to be calculated again because the previous multiplication result can be used, so that such a multiplication is ignored in the counting.

[0053] (Prior Art Example 4: Elliptic Curve Construction Based on the SEA Algorithm)

[0054] A method of constructing elliptic curves using the SEA algorithm is proposed in pp. 379˜392 in R. Lercier “Finding Good Random Elliptic Curves for Cryptosystems Defined over F(2{circumflex over ( )}n)” Advances in Cryptology-Proceedings of EUROCRYPT'97, Lecture Notes in Computer Science, 1233, Springer-Verlag (1997) (hereinafter referred to as “document 1”). In this method the predetermined conditions used in the elliptic curve construction of prior art example 1 are defined as “the order of the elliptic curve is a prime”.

[0055] Lercier's elliptic curve construction method which employs the SEA algorithm is described below with reference to FIGS. 2 and 3.

[0056] Let p be a prime which is an input value. Also, let E be an elliptic curve over a finite field GF(p) and E′ be the quadratic twist of E. Then there is the relationship that, if the order of E is p+1−t, the order of E′ is p+1+t.

[0057] First, an element u of the finite field GF(p) is chosen at random (S931), and parameters of the elliptic curve E are determined based on the element u (S932). Then, flags flag#ell and flag#twist are both set at an initial value 1 (S933).

[0058] Next, the order of E and the order of E′ are calculated according to the SEA algorithm (S934).

[0059] If the order of E is divisible by L (S935), flag#ell is changed to 0 (S936), whereas if the order of E′ is divisible by L (S937), flag#twist is changed to 0 (S938). When flag#ell=0 and flag#twist=0 (S940), the procedure returns to step S931. Otherwise, the procedure proceeds to step S941.

[0060] When flag#ell=1 (S941), it is judged whether the order of E is prime (S942). If the order of E is prime, the procedure proceeds to step S945. If the order of E is not prime, it is judged whether flag#twist=1 (S943). When flag#twist#1, the procedure returns to step S931. When flag#twist=1, it is judged whether the order of E′ is prime (S944). If the order of E′ is not prime, the procedure returns to step S931. If the order of E′ is prime, the procedure proceeds to step S945.

[0061] It is judged in step S945 whether the order of E is equal to p. If the order is equal to p, the procedure returns to step S931. If the order is not equal to p, the parameters of the elliptic curve E are outputted (S946).

[0062] In Lercier's elliptic curve construction, step S933 is used to accelerate computation, thereby reducing computation time needed for the SEA algorithm. Nevertheless, since in step S932 the parameters of the elliptic curve E are determined without consideration given to the possibility that the order of the elliptic curve E is not prime, the order computation according to the SEA algorithm in step S934 may have to be repeated again and again. This causes an increase in overall computational complexity.

[0063] Thus, despite the fact that Schoof's order computation algorithm in elliptic curve construction has been modified as the SEA algorithm and improvements to reduce computational complexity of the SEA algorithm have been proposed by Lercier, there still remains the demand to further reduce computational complexity for elliptic curves.

SUMMARY OF THE INVENTION

[0064] The first object of the invention is to provide an elliptic curve arithmetic operation device that can compute points on an elliptic curve with small computational complexity.

[0065] The second object of the invention is to provide an elliptic curve order computation device that can compute an order of an elliptic curve with small computational complexity.

[0066] The third object of the invention is to provide an elliptic curve construction device that can construct a highly secure elliptic curve with small computational complexity.

[0067] The fourth object of the invention is to provide an elliptic curve application device that uses a highly secure elliptic curve constructed with small computational complexity.

[0068] The first object can be fulfilled by an elliptic curve arithmetic operation device for performing one of an addition and a doubling on an elliptic curve E: y{circumflex over ( )}2=f (x) on a residue class ring of polynomials in two variables α and β, moduli of the residue class ring being polynomials β{circumflex over ( )}2−f(α) and h(α), where f(α)=α{circumflex over ( )}3+aα+b, a and b are constants, and h(α) is a polynomial in the variable α, the elliptic curve arithmetic operation device including: an acquiring unit for acquiring affine coordinates of at least one point on the elliptic curve E and operation information indicating one of the addition and the doubling, from an external source; a transforming unit for performing a coordinate transformation on the acquired affine coordinates to generate Jacobian coordinates, the coordinate transformation being transforming affine coordinates (φ(α),β×φ(β)) of a given point on the elliptic curve E using polynomials

X(α)=f(α)×φ(α)

Y(α)=f(α){circumflex over ( )}2×φ(α)

Z(α)=1

[0069] into Jacobian coordinates (X(α):Y(α):α×Z(α)), φ(α) and φ(α) being polynomials; and an operating unit for performing one of the addition and the doubling indicated by the acquired operation information, on the generated Jacobian coordinates to obtain Jacobian coordinates of a point on the elliptic curve E.

[0070] Here, the acquiring unit may in a first case acquire affine coordinates of two different points on the elliptic curve E and operation information indicating the addition and in a second case acquire affine coordinates of a single point on the elliptic curve E and operation information indicating the doubling, wherein the transforming unit in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates of the two different points and in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates of the single point, and the operating unit in the first case performs the addition indicated by the acquired operation information on the generated Jacobian coordinates of the two different points to obtain the Jacobian coordinates of the point on the elliptic curve E and in the second case performs the doubling indicated by the acquired operation information on the generated Jacobian coordinates of the single point to obtain the Jacobian coordinates of the point on the elliptic curve E.

[0071] Here, the acquiring unit may in the first case acquire affine coordinates

[0072] (X1(α),β×Y1(α))

[0073] (X2(α),β×Y2(α))

[0074] of the two different points on the elliptic curve E and the operation information indicating the addition and in the second case acquire affine coordinates

[0075] (X1(α),β×Y1(α))

[0076] of the single point on the elliptic curve E and the operation information indicating the doubling, wherein the transforming unit in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates

[0077] (X1(α):Y1(α):β×Z1(α))

[0078] (X2(α):Y2(α):β×Z2(α))

[0079] of the two different points and in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates

[0080] (X1(α):Y1(α):α×Z1(α))

[0081] of the single point, and the operating unit in the first case computes

U 1(α)=X 1(α)×Z 2(α){circumflex over ( )}2

U 2(α)=X 2(α)×Z 1(α){circumflex over ( )}2

S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3

S 2(α)=Y 2(α)×Z 1(α){circumflex over ( )}3

H(α)=U 2(α)−U 1(α)

r(α)=S 2(α)−S 1(α)

[0082] and computes

X 3(α)=−H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2

Y 3(α)=−S 1(α)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α))

Z 3(α)=Z 1(α)×Z 2(α)×H(α)

[0083] to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E, and in the second case computes

S(α)=4×X 1(α)×Y 1 (α){circumflex over ( )}2

M(α)=3×X 1(α){circumflex over ( )}2+a×Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2

T(α)=−2×S(α)+M(α){circumflex over ( )}2

[0084] and computes

X 3(α)=T(α)

Y 3(α)=−8×Y 1(α){circumflex over ( )}4+M(α)×(S(α)−T(α))

Z 3(α)=2×Y 1(α)×Z 1(α)

[0085] to obtain the Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.

[0086] With the above construction, computational complexity for polynomial multiplications in the addition increases by 1×PMul and computational complexity for polynomial multiplications in the doubling decreases by 2×PMul, when compared with the prior art. Given that generally the doubling is more frequently repeated than the addition, the decrease in computational complexity of the doubling greatly contributes to a reduction in overall computational complexity in the elliptic curve arithmetic operation device.

[0087] The second object can be fulfilled by an elliptic curve order computation device for computing an order of an elliptic curve according to a Schoof-Elkies-Atkin algorithm, the elliptic curve order computation device including the above elliptic curve arithmetic operation device.

[0088] With this construction, computational complexity for polynomial multiplications in the addition increases by 1×PMul and computational complexity for polynomial multiplications in the doubling decreases by 2×PMul, when compared with the prior art. Given that generally the doubling is more frequently repeated than the addition, the decrease in computational complexity of the doubling greatly contributes to a reduction in overall computational complexity in the elliptic curve order computation device.

[0089] The third object can be fulfilled by an elliptic curve construction device for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, the elliptic curve construction device including: a random number generating unit for generating a random number; a parameter generating unit for selecting the parameters of the elliptic curve E using the generated random number, in such a manner that a probability of a discriminant of the elliptic curve E having any square factor is lower than a predetermined threshold value; a finitude judging unit for judging whether the elliptic curve E defined by the selected parameters has any point whose order is finite on a rational number field; an order computing unit for computing an order m of the elliptic curve E when the finitude judging unit judges that the elliptic curve E does not have any point whose order is finite on the rational number field; a security judging unit for judging whether a condition that the computed order m is a prime not equal to the prime p is satisfied; a repeat controlling unit for controlling the random number generating unit, the parameter generating unit, the finitude judging unit, the order computing unit, and the security judging unit respectively to repeat random number generation, parameter selection, finitude judgement, order computation, and security judgement until the condition is satisfied; and a parameter outputting unit for outputting the selected parameters when the condition is satisfied.

[0090] With this construction, the parameter generating unit is likely to select a secure elliptic curve beforehand, so that the processes of selecting an elliptic curve and testing its security do not have to be repeated over and over again. As a result, overall computational complexity in the elliptic curve construction device is reduced.

[0091] Also, the finitude judging unit assesses the security of the elliptic curve by judging whether the elliptic curve has a point with a finite order, before the order of the elliptic curve is computed. If the elliptic curve is judged as not being secure, the elliptic curve is rejected without the order thereof being computed. Accordingly, unnecessary calculation of the order is avoided and the overall computational complexity in the elliptic curve construction device is reduced.

[0092] Here, the elliptic curve E may be expressed as y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b where parameters a and b are constants, wherein the parameter generating unit selects −3 and the random number respectively as the parameters a and b so that the probability of the discriminant of the elliptic curve E having any square factor is lower than the predetermined threshold value.

[0093] With this construction, the parameter generating unit selects the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3−3x+b which is highly secure beforehand, so that the processes of selecting an elliptic curve and testing its security do not have to be repeated over and over again. Accordingly, the overall computational complexity in the elliptic curve construction device is reduced.

[0094] Here, the finitude judging unit may, given two primes p1 and p2 beforehand where p1≠p2, interpret the elliptic curve E as an elliptic curve EQ on the rational number field, compute orders m1 and m2 of respective elliptic curves Ep1 and Ep2 which are produced by reducing the elliptic curve EQ modulo p1 and p2, judge whether the orders m1 and m2 are relatively prime, and, if the orders m1 and m2 are relatively prime, judge that the elliptic curve E does not have any point whose order is finite on the rational number field.

[0095] With this construction, the finitude judging unit assesses the security of the elliptic curve by judging whether the orders m1 and m2 of the elliptic curves Ep1 and Ep2 produced by reducing the elliptic curve EQ modulo p1 and p2 are relatively prime, before the order of the elliptic curve is computed. If the elliptic curve is judged as not being secure, the elliptic curve is rejected without the order thereof being computed. As a result, unnecessary calculation of the order is avoided and the overall computational complexity in the elliptic curve construction device is reduced.

[0096] Here, the finitude judging unit may, given the primes p1=5 and p2=7 beforehand, compute the orders m1 and m2 of the respective elliptic curves Ep1 and Ep2 produced by reducing the elliptic curve EQ modulo p1=5 and p2=7.

[0097] With this construction, the finitude judging unit judges whether the orders m1 and m2 of the elliptic curve Ep1 and Ep2 after reducing the elliptic curve EQ modulo p1=5 and p2=7 are relatively prime. Performing the finitude judgement process in such a manner requires only the smallest computational complexity.

[0098] Here, the order computing unit may compute the order m of the elliptic curve E according to a Schoof-Elkies-Atkin algorithm and include an elliptic curve arithmetic operating unit for performing one of an addition and a doubling on the elliptic curve E: y{circumflex over ( )}2=f(x) on a residue class ring of polynomials in variables α and β, moduli of the residue class ring being polynomials β{circumflex over ( )}2−f(α) and h(α), where f(α)=α{circumflex over ( )}3+aα+b and h(α) is a polynomial in the variable a, wherein the elliptic curve arithmetic operating unit includes the above elliptic curve arithmetic operation device.

[0099] With this construction, computational complexity for polynomial multiplications in the addition increases by 1×PMul and computational complexity for polynomial multiplications in the doubling decreases by 2×PMul, when compared with the prior art. Given that normally the doubling is more frequently repeated than the addition, the decrease in computational complexity of the doubling greatly contributes to a reduction in overall computational complexity in the elliptic curve construction device.

[0100] The fourth object can be fulfilled by an elliptic curve application device that uses elliptic curves, the elliptic curve application device including an elliptic curve constructing unit for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, wherein the elliptic curve constructing unit includes the above elliptic curve construction device.

[0101] With this construction, the elliptic curve application device delivers the same effects as the above elliptic curve construction device. Such an elliptic curve application device can achieve highly secure, fast encryption or digital signature and so has great practical applicability.

BRIEF DESCRIPTION OF THE DRAWINGS

[0102] These and other objects, advantages and features of the invention will become apparent from the following description thereof taken in conjunction with the accompanying drawings that illustrate a specific embodiment of the invention. In the drawings:

[0103]FIG. 1 is a flowchart showing a conventional elliptic curve construction method;

[0104]FIG. 2 is a flowchart showing Lercier's elliptic curve construction method as another prior art example;

[0105]FIG. 3 is a flowchart that follows the flowchart of FIG. 2;

[0106]FIG. 4 is a block diagram showing the configuration of an elliptic curve construction device 500 according to an embodiment of the present invention;

[0107]FIG. 5 is a block diagram showing the concrete configuration of the elliptic curve construction device 500;

[0108]FIG. 6 shows an example of data stored in an information storing unit 507 in the elliptic curve construction device 500;

[0109]FIG. 7 is a flowchart showing the procedure of constructing an elliptic curve by the elliptic curve construction device 500;

[0110]FIG. 8 is a flowchart showing the procedure of computing the order of the elliptic curve by an elliptic curve order computing unit 504 in the elliptic curve construction device 500;

[0111]FIG. 9 is a flowchart showing the procedure of computing t mod L{circumflex over ( )}n by the elliptic curve order computing unit 504; and

[0112]FIG. 10 is a flowchart showing the procedure of performing addition or doubling on points on the elliptic curve by the elliptic curve order computing unit 504.

DESCRIPTION OF THE PREFERRED EMBODIMENT

[0113] The following is a description of an elliptic curve construction device 500 according to an embodiment of the invention.

[0114] (1. Configuration of the Elliptic Curve Construction Device 500)

[0115] The elliptic curve construction device 500, when given a prime p, outputs parameters of an elliptic curve that is defined over a finite field GF(p) and that has a prime order not equal to p. Such a constructed elliptic curve exhibits a high degree of security.

[0116] The elliptic curve construction device 500 is roughly made up of a random number generating unit 501, an elliptic curve setting unit 502, an elliptic curve finitude judging unit 503, an elliptic curve order computing unit 504, an elliptic curve condition judging unit 505, a controlling unit 506, an information storing unit 507, an inputting unit 508, an outputting unit 509, and a parameter storing unit 510, as shown in FIG. 4. This elliptic curve construction device 500 is implemented by a microprocessor 11, a ROM (read only memory) 12, a RAM (random access memory) 13, a hard disk 14 storing a computer program, a keyboard 15, a display 16, and the like, as shown in FIG. 5. The functions of the random number generating unit 501, elliptic curve setting unit 502, elliptic curve finitude judging unit 503, elliptic curve order computing unit 504, elliptic curve condition judging unit 505, controlling unit 506, inputting unit 508, and outputting unit 509 are realized by way of executing the computer program in the hard disk 14 with the microprocessor 11.

[0117] (1.1. Inputting Unit 508)

[0118] The inputting unit 508 is implemented by the keyboard 15 or the like. The inputting unit 508 receives from the user an instruction to construct an elliptic curve and an input of a prime p (p≠2). In this embodiment the prime p is 160 bits long.

[0119] The inputting unit 508 passes the received instruction and prime p to the controlling unit 506.

[0120] (1.2. Information Storing Unit 507)

[0121] The information storing unit 507 is provided with areas for respectively storing the prime p, a random number t, a parameter a, a parameter b, and a order m, as shown in FIG. 6. Each of the areas has a 160-bit capacity. The information storing unit 507 is implemented by the RAM 13.

[0122] Among these, the parameters a and b are coefficients in an equation y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b that represents an elliptic curve E defined over the finite field GF(p).

[0123] (1.3. Random Number Generating Unit 501)

[0124] The random number generating unit 501 receives an instruction to generate a random number from the controlling unit 506.

[0125] On being instructed, the random number generating unit 501 generates the 160-bit random number t and writes the random number t into the information storing unit 507.

[0126] (1.4. Elliptic Curve Setting Unit 502)

[0127] (1) Function and Configuration of the Elliptic Curve Setting Unit 502

[0128] The elliptic curve setting unit 502 reads the random number t from the information storing unit 507. The elliptic curve setting unit 502 then sets the parameters a and b of the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b such that a=−3 and b=t, thereby defining the elliptic curve E as y{circumflex over ( )}2=x{circumflex over ( )}3x{circumflex over ( )}3x+t.

[0129] The elliptic curve setting unit 502 writes the set parameters a and b into the information storing unit 507.

[0130] (2) Rationale for Defining the Elliptic Curve E as y{circumflex over ( )}2=x{circumflex over ( )}3−3x+t

[0131] The elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3−3x+t bears a high probability of having a prime order, so that the elliptic curve E defined by the elliptic curve setting unit 502 is likely to be a secure elliptic curve.

[0132] The reason why the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3−3x+t bears a high probability of having a prime order is presented below.

[0133] For a curve E on a rational number field expressed by

[0134] E: y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b (where a and b are integers) a discriminant TD is defined as

TD=4×a{circumflex over ( )}3+27×b{circumflex over ( )}2

[0135] This being so, when the discriminant TD is not 0, it means E is an elliptic curve. This is described in J. H. Silverman “The Arithmetic of Elliptic Curves” GTM106, Springer-Verlag (1986) (hereinafter referred to as “document 2”), p.50.

[0136] In the description that follows, it is assumed that the discriminant TD is not 0, i.e. E is an elliptic curve.

[0137] The following theorem is presented in p.221 in document 2.

[0138] [Theorem 1] When a point having a finite order exists on the elliptic curve E, its coordinates (x,y) are integers and the discriminant TD is divisible by y{circumflex over ( )}2.

[0139] According to Theorem 1, when the discriminant TD is not divisible by y{circumflex over ( )}2 at a point P=(x,y) on the elliptic curve E, it implies that the point P does not have a finite order. That is to say, when the discriminant TD has no square factor and a point (x,y) with a finite order exists on the elliptic curve E, y=1 holds. Therefore, if there is no solution for 1=x{circumflex over ( )}3+ax+b mod p, then there is no point with a finite order on the elliptic curve E. Theorem 1 leads to the following fact.

[0140] [Fact 1] When the probability of the discriminant TD having a square factor is low, the probability of the elliptic curve E containing a point with a finite order is low.

[0141] Let the parameters a and b of the elliptic curve E be elements of GF(p), the coordinates of some point on the elliptic curve E be elements of GF(p), and Ep be an elliptic curve obtained as a result. This process is called “reducing modulo p”. Reducing the point P=(x,y) with a finite order r on the elliptic curve E modulo p yields a point Pp=(x mod p, y mod p) on the elliptic curve Ep. Such a point Pp has an order no less than r, without being transformed to the zero point 0 of the elliptic curve Ep.

[0142] Based on group theory, the following proposition is established.

[0143] [Proposition 1] If the order of the point Pp on the elliptic curve Ep is r, then the order of the elliptic curve Ep is divisible by r.

[0144] Let m be the order of the elliptic curve Ep and suppose there is a point of the finite order r on the elliptic curve E on the rational number field. When r is smaller than m, then m is divisible by r. Therefore, the order of Ep is not prime. Conversely, this leads to Fact 2.

[0145] [Fact 2] The elliptic curve Ep obtained by reducing modulo p the elliptic curve E which does not have a point of finite order on a rational number field bears a high probability of having a prime order.

[0146] Combining Fact 1 and Fact 2 yields the following fact.

[0147] [Fact 3] If the chance that the discriminant TD of the elliptic curve E has a square factor is small, then the chance that the elliptic curve Ep obtained by reducing E modulo p has a prime order is high.

[0148] In the following, elliptic curves

[0149] E1: y{circumflex over ( )}2=x{circumflex over ( )}3+3ux+2u

[0150] E2: y{circumflex over ( )}2=x{circumflex over ( )}3−3x+t (where t>O)

[0151] are tested with the discriminant TD. When the discriminants TD of E1 and E2 are respectively denoted by TD(E1) and TD(E2),

TD(E 1)=y{circumflex over ( )}2×3{circumflex over ( )}3×u{circumflex over ( )}2×(u+1)

TD(E 2)=3{circumflex over ( )}3×(t{circumflex over ( )}2−4)

[0152] As square factors of TD(E1), there are at least 2, 3, 6, u, and 2×3Δu. As square factors of TD(E2), the following proof shows that t{circumflex over ( )}2−4 is not a square number.

[0153] [Proof] Let t be an integer not equal to 0. Since t≠0, t>1. This is because t{circumflex over ( )}2−4=−3 when t=1.

[0154] Here, suppose t{circumflex over ( )}2−4 is a square number, i.e. t{circumflex over ( )}2−4=n{circumflex over ( )}2 for any positive integer n>0.

[0155] Then (t−n)(t+n)=4. The divisors of 4 are 1, 2, and 4, so that, given t−n<t+n, the combinations of t−n and t+n are (t−n,t+n)=(1,4), (2,2), (4,1). In any of these combinations, t and n are not integers.

[0156] Thus, since t{circumflex over ( )}2−4 is not a square number, the probability of TD(E2) having a square factor is low. Accordingly, TD(E2) is less likely to have a square factor than TD(E1). Let E1 p and E2 p be elliptic curves produced by respectively reducing the elliptic curves E1 and E2 modulo p. From Fact 3 it is clear that the elliptic curve E2 p has a higher probability of having a prime order than the elliptic curve E1 p.

[0157] It is thus apparent that the chance of the elliptic curve E2 p having a prime order is high.

[0158] For the above reason, the elliptic curve setting unit 502 sets the parameters a and b in such a manner that the probability of the discriminant TD of the elliptic curve E having a square factor is lower than a predetermined threshold value.

[0159] Since the elliptic curve setting unit 502 is likely to choose a highly secure elliptic curve in advance in such a way, the elliptic curve Construction device 500 does not have to repeat the processes of choosing an elliptic curve and testing its security over and over again, with it being possible to reduce the overall computational complexity required of the elliptic curve construction device 500.

[0160] (1.5. Elliptic Curve Finitude Judging Unit 503)

[0161] (1) Function and Configuration of the Elliptic Curve Finitude Judging Unit 503

[0162] The elliptic curve finitude judging unit 503 reads the parameters a and b of the elliptic curve E defined over the finite field GF(p), from the information storing unit 507.

[0163] The elliptic curve finitude judging unit 503 interprets the read parameters a and b as integers, and the elliptic curve E as an elliptic curve on a rational number field.

[0164] The elliptic curve finitude judging unit 503 chooses primes p1 and p2 that are smaller than the prime p, where p1≠p2. Examples are p1=5 and p2=7. Next, the elliptic curve finitude judging unit 503 reduces the elliptic curve E on the rational number field respectively modulo p1 and p2 into the elliptic curves Ep1 and Ep2, and computes the orders m1 and m2 of the respective elliptic curves Ep1 and Ep2. When the elliptic curve E is given by the equation y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b, then the orders m1 and m2 are computed as follows: $\begin{matrix} \begin{matrix} {{m1} = {p + 1 + {\sum\limits_{n = 0}^{{p1} - 1}\quad \left( \frac{{n\hat{}3} + {a \times n} + b}{p1} \right)}}} \\ {{m2} = {p + 1 + {\sum\limits_{n = 0}^{{p2} - 1}\quad \left( \frac{{n\hat{}3} + {a \times n} + b}{p2} \right)}}} \end{matrix} & \left\lbrack {{Formula}\quad 1} \right\rbrack \end{matrix}$

[0165] Here, (c/p) denotes the quadratic residue signal, wherein (c/p)=+1 if c is a quadratic residue modulo p, (c/p)=−1 if c is a quadratic nonresidue modulo p, and (c/p)=0 if c=0.

[0166] A brief explanation on Formula 1 is given below.

[0167] For a value n (0˜p1−1), two points are present on the elliptic curve E when n{circumflex over ( )}3+a*n+b is a square number not equal to 0, one point is present on the elliptic curve E when n{circumflex over ( )}3+a*n+b=0, and no point is present on the elliptic curve E when n{circumflex over ( )}3+a*n+b is not a square number. On the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b, the number of points whose x coordinate is n (0˜p1−1) is expressed as $\begin{matrix} {1 + \left( \frac{{n\hat{}3} + {a \times n} + b}{p1} \right)} & \left\lbrack {{Formula}\quad 2} \right\rbrack \end{matrix}$

[0168] Hence the total number of points on the elliptic curve E for p1 values from 0 to p1−1 can be written as $\begin{matrix} {{1 + {\sum\limits_{n = 0}^{{p1} - 1}\left( {1 + \quad \left( \frac{{n\hat{}3} + {a \times n} + b}{p1} \right)} \right)}} = {1 + p + {\sum\limits_{n = 0}^{{p1} - 1}\quad \left( \frac{{n\hat{}3} + {a \times n} + b}{p1} \right)}}} & \left\lbrack {{Formula}\quad 3} \right\rbrack \end{matrix}$

[0169] thereby establishing order computation Formula 1. Note here that “1” appearing first in Formula 3 denotes the number of zero points O.

[0170] This order computation algorithm is described in pp.219˜220 in R. Schoof “Counting Points on Elliptic Curves over Finite Fields” Jornal de Theorie des Nombres de Bordeaux 7 (1995) (hereinafter referred to as “document 3”).

[0171] Next, the elliptic curve finitude judging unit 503 checks whether the computed orders m1 and m2 are relatively prime, and provides the controlling unit 506 with order judgement information showing whether m1 and m2 are relatively prime.

[0172] It is to be noted that since p1 and p2 are small primes, computational complexity of calculating the orders due to the above order computation formula is within an acceptable range.

[0173] (2) Reason for Judging Whether the Orders m1 and m2 are Relatively Prime

[0174] The following theorem holds for the elliptic curve E over the rational number field. The theorem is given in p.176 in document 2.

[0175] [Theorem 3] Let Ep1 and Ep2 be elliptic curves obtained by reducing the elliptic curve E on the rational number field respectively modulo the primes p1 and p2 (where ploP2), and m1 and m2 be the orders of the respective elliptic curves Ep1 and Ep2. When m1 and m2 are relatively prime, then the elliptic curve E does not have a point whose order is finite.

[0176] Thus, when the order m1 of the elliptic curve Ep1 and the order m2 of the elliptic curve Ep2 are relatively prime, the elliptic curve E does not have a point with a finite order, so that according to Fact 2 there is a high probability that the order of the elliptic curve Ep is prime. In contrast, when m1 and m2 are not relatively prime, the elliptic curve E has a point with a finite order, so that according to Fact 2 the probability that the order of the elliptic curve Ep is prime is low. The level of security of such an elliptic curve E is not quite high. Accordingly, if the order m1 of the elliptic curve Ep1 and the order m2 of the elliptic curve Ep2 are not relatively prime, the elliptic curve finitude judging unit 503 rejects the elliptic curve E.

[0177] Thus, an elliptic curve which is not secure is rejected prior to the computation of the order of the elliptic curve. As a result, time needed for calculating the order of such an inappropriate elliptic curve by the elliptic curve order computing unit 504 can be saved, with it being possible to reduce the overall computational complexity in the elliptic curve construction device 500.

[0178] Note that though p1 and p2 can take any primes smaller than the prime p, it is preferable to set p1=5 and p2=7 as shown above. By such choosing the combination of smallest primes as p1 and p2, computational complexity of calculating the orders m1 and m2 becomes the smallest.

[0179] Here, if the prime p1 (or the prime p2) is 3, the elliptic curve discriminant TD modulo 3 becomes 0, meaning that Ep1 (or Ep2) is not an elliptic curve. Therefore, 3 should not be assigned to p1 (or p2).

[0180] (1.6. Elliptic Curve Order Computing Unit 504)

[0181] The elliptic curve order computing unit 504 calculates the order of the elliptic curve E on the finite field GF(p) in the following manner.

[0182] (1.6.1. Calculation of the Order Due to the SEA Algorithm)

[0183] The elliptic curve order computing unit 504 employs the SEA algorithm to compute the order of the elliptic curve E.

[0184] Let m be the order of the elliptic curve E, and t be such that

m=p+1−t

[0185] Also, the equation

f(x)=x{circumflex over ( )}3+ax+b

[0186] is given.

[0187] First, the elliptic curve order computing unit 504 sets an integer variable L at an initial value 2.

[0188] The elliptic curve order computing unit 504 then counts the number of linear factors when factoring a modular polynomial ΦL(T,j(E)) in a ring GF(p)[T] of polynomials in a variable T.

[0189] When the number of linear factors is 2, the elliptic curve order computing unit 504 solves t mod L, and further solves t mod L{circumflex over ( )}n according to the isogeny cycle algorithm.

[0190] When the number of linear factors is 1 or L+1, the elliptic curve order computing unit 504 solves t mod L, and checks whether the isogeny cycle algorithm is applicable. If the isogeny cycle algorithm is applicable, the elliptic curve order computing unit 504 solves t mod L{circumflex over ( )}n (n=2, 3, . . . ) by the isogeny cycle algorithm.

[0191] When, on the other hand, the number of linear factors is 0, the elliptic curve order computing unit 504 narrows down possible values of t mod L from the set [0, 1, . . . , L−1].

[0192] Next, the elliptic curve order computing unit 504 increases L to the next prime if

L 1(n 1)×L 2(n 2)×. . . ×Lk{circumflex over ( )}(nk)<4×p{circumflex over ( )}(½)

[0193] (where L1, L2, . . . , and Lk are primes and Lk=L)

[0194] and repeats the counting of the number of linear factors and the process which follows depending on the number of linear factors, until the above conditional expression is unmet.

[0195] If the conditional expression is unmet, the elliptic curve order computing unit 504 determines the order m according to the match & sort algorithm and writes the determined order m into the information storing unit 507.

[0196] This order computation algorithm is detailed in R. Lercier & F. Morain “Counting the Number of Points on Elliptic Curves over Finite Fields: Strategies Performances” EUROCRYPT'95, pp.79˜94, Springer-Verlag (1995).

[0197] Also, the match & sort algorithm is explained in detail in “Algorithmique des Courbes Elliptiques dans les Corps Finis” Thesis, Ecole Polytechnique-LIX (1997), pp.195˜202 and “Elliptic Curves in Cryptography” London Mathematical Society, Lecture Note Series 265, Cambridge University Press (1999), pp.142˜144.

[0198] (1.6.2. Supplemental Remarks on the Order Computation by the SEA Algorithm)

[0199] The computation of the elliptic curve order m by the SEA algorithm is elaborated below. The elliptic curve order computing unit 504 performs the following calculations.

[0200] Let

E: y{circumflex over ( )}2=f(x)

[0201] be the elliptic curve over GF(p) where f (x)=x{circumflex over ( )}3+ax+b.

[0202] (1) Characteristic Equation

[0203] (1-1) Algebraic Closure K of GF(p)

[0204] K denotes the algebraic closure of GF(p). The algebraic closure K is a field containing GF(p). Any polynomial having coefficients of K can be decomposed into linear expressions.

[0205] Another example of the algebraic closure is a complex number field that is an algebraic closure of a real number field. Any polynomial having coefficients of a complex number field can be decomposed into linear expressions.

[0206] (1-2) Frobenius Map φp

[0207] For a point P=(α,β) (where α,β∈K) on the elliptic curve E, the Frobenius map φp is defined as follows:

φp: (α,β)→(α{circumflex over ( )}p, β{circumflex over ( )}p)

[0208] Since (α,β) is a point on E,

β{circumflex over ( )}2=α{circumflex over ( )}3+aα+ b

[0209] Raising both sides of this equation to the pth power yields

β{circumflex over ( )}(2p)=(α{circumflex over ( )}3+aα+b){circumflex over ( )}p

[0210] the right side of which can be developed to $\begin{matrix} {{\left( {{\alpha\hat{}3} + {a\quad \alpha} + b} \right)\hat{}p} = {{\alpha\hat{}\left( {3p} \right)} + {{a\hat{}p}*{\alpha\hat{}p}} + {b\hat{}p}}} \\ {{= {{\alpha\hat{}\left( {3p} \right)} + {a\quad*{\alpha\hat{}p}} + b}}\quad} \end{matrix}$

[0211] in accordance with p.193 in Y. Morita Introduction to Algebra, Mathematics Selection 9, Shokabo (1987). Here, a and b are elements of GF(p), so that a=a p and b=b p.

[0212] Hence

(β{circumflex over ( )}p){circumflex over ( )}2=(α{circumflex over ( )}p){circumflex over ( )}3+a(α{circumflex over ( )}p)+b

[0213] Therefore, (α{circumflex over ( )}p,β{circumflex over ( )}p) is a point on the elliptic curve E, too.

[0214] (1-3) Characteristic Polynomial

[0215] According to p.485 in R. Schoof “Elliptic Curves over Finite Fields and the Computation of Square Roots mod p” Mathematics of Computation vol.44, no.170 (1985) (hereinafter “document 4”), an equation

(φp){circumflex over ( )}2(P)−tφp(P)+pP=O

[0216] holds for a point P=(α,β) (α,β) on the elliptic curve E, where O is a zero element of the group of the elliptic curve E, t is the trace of the Frobenius map, and the signs + and − respectively denote addition and subtraction on the elliptic curve E.

[0217] The elliptic curve order m can be deduced from t by an equation

m=p+1−t

[0218] in accordance with Hasse's theorem. That is to say, acquiring the trace t allows the order m of the elliptic curve E to be computed.

[0219] Suppose the point P is an L-division point on E (L a prime), i.e. P satisfies LP=O. Then an equation

(φp){circumflex over ( )}2(P)−(t mod L)φp(P)+(p mod L)P=O

[0220] holds.

[0221] The SEA algorithm computes t mod L from this equation. Here, when φp has an eigenvalue k, it means that

φp(P)=kP

[0222] holds for the L-division point P on E, where kP is an exponentiation point of P.

[0223] This being so, the characteristic polynomial of φp is

(k{circumflex over ( )}2)P−(t mod L)kP+(p mod L)P=O

[0224] Therefore, when the eigenvalue k exists, the characteristic polynomial of φp is assumed to be a quadratic equation in the variable k in the form

k{circumflex over ( )}2—(t mod L)k+(p mod L)=0

[0225] The SEA algorithm makes the following distinction depending on whether the quadratic equation has a root on GF(L).

[0226] (Case 1) when the quadratic equation has different roots k1 and k2

[0227] (Case 2) when the quadratic equation has a multiple root

[0228] (Case 3) when the quadratic equation has no root

[0229] The following procedures are carried out for Cases 1˜3, respectively.

[0230] When the quadratic equation bears two different roots k1 and k2 (Case 1),

k{circumflex over ( )}2−(t mod L)k+(p mod L)=(k−k 1)(k−k 2)

[0231] i.e.

k 1+k 2=t mod L

k 1*k 2=p mod L

[0232] Accordingly, if k1 is found, then t can be deduced from

t−k 1+p/k 1=(k 1{circumflex over ( )}2+p)/k 1 mod L

[0233] When the quadratic equation bears a multiple root (Case 2),

k1{circumflex over ( )}2=p mod L

[0234] Accordingly, k takes one of ±{square root}(p) mod L. The value of k can be specified by testing whether

φpP=±({square root}(p)mod L)P

[0235] is true.

[0236] Depending on the eigenvalue of φp, t takes one of ±2{square root}(p) mod L.

[0237] When, on the other hand, the quadratic equation has no root (Case 3), the coordinates of ((φp){circumflex over ( )}2+(p mod L))P and the coordinates of (t′ mod L)φpP are compared, and t′ that matches is set to be exact t mod L.

[0238] (1-4) Distinction

[0239] Since t mod L is unknown, generally it is impossible to determine which of Cases 1˜3 applies.

[0240] However, this can be done by referencing the number of roots of a polynomial called a modular polynomial on GF(p).

[0241] When the number of roots of the modular polynomial φL(T,j(E)) on GF(p) is 2, Case 1 applies. When the number of roots is 1 or L+1, Case 2 applies. When the number of roots is 0, Case 3 applies.

[0242] For more detail, see document 3, p.239.

[0243] (1-5) Solution of the Characteristic Equation in Case 3

[0244] In Case 3, the characteristic equation is solved in the following fashion.

[0245] fL(α) denotes an L-division polynomial that has, as roots, x coordinates of all L-division points P on E, i.e. P satisfying LP=O. Here, “P=(α,β) is an L-division point” is equivalent to “fL(α)=0”.

[0246] fL(α) is deduced through the use of recursive formulas. For more details, see document 4, p.485.

[0247] (1-6) Polynomial Representation of the Characteristic Equation

[0248] From the characteristic equation,

(φp){circumflex over ( )}2(P)+(p mod L)P=(t mod L)φpP  (equation 1)

[0249] is found to be true. Let (α,β) be the coordinates of the point P. Since the point P(α,β) is a point on the elliptic curve E, it satisfies

β{circumflex over ( )}2−α{circumflex over ( )}3−aα−b=0

[0250] Also, since P(α,β) is an L-division point, it satisfies

fL(α)=0

[0251] Let the coordinates of the point P in equation 1 be expressed on a residue class ring

R=GF(p)[a,β]/(β{circumflex over ( )}2−α{circumflex over ( )}3−aα−b,fL(α))

[0252] of polynomials in variables α and β.

[0253] Computations on the polynomial residue class ring R are performed by substituting α{circumflex over ( )}3+αa+b for β{circumflex over ( )}2 and 0 for fL(α).

[0254] In the following description, “in R” represents an operation in the polynomial residue class ring R.

[0255] According to equation 1

(α{circumflex over ( )}2(p{circumflex over ( )}2),β{circumflex over ( )}(p{circumflex over ( )}2))+(p mod L)(α,β)=(t mod L)(α{circumflex over ( )}p,β{circumflex over ( )}p) in R  (equation 2)

[0256] holds.

[0257] (1-7) Solution of the Characteristic Equation in Case 1

[0258] In Case 1, the characteristic equation is solved in the following way.

[0259] k such that φpP=kP is sought using a factor h(α) of the L-division polynomial fL(α). That is, fL(α) is divisible by h(α). The solution for h(α) is given in document 3, pp.242˜253.

[0260] (1-8) Solution of the Characteristic Equation in Case 2

[0261] In Case 2, the characteristic equation is solved in the following way.

[0262] Since it is already known that k=±{square root}p, the y coordinates are compared to specify the sign.

[0263] It is to be noted that since computational complexity in Case 3 is large as compared with Case 1 or Case 2, t mod L is not calculated in Case 3. Instead, the operation of narrowing down possible values of t mod L is conducted. By doing so, the computational complexity in Case 3 becomes roughly equal to computational complexity in Case 1 or Case 2.

[0264] As an exception, exact t mod L is computed for small L (such that L≦5), on the ground that the computational complexity in such a case is relatively small.

[0265] Obtaining possible values of t mod L is detailed in document 3, pp.239˜241.

[0266] (1.6.3. Calculation of t mod L{circumflex over ( )}n)

[0267] The elliptic curve order computing unit 504 calculates t mod L{circumflex over ( )}n as follows.

[0268] (1) Calculation of t mod L

[0269] The elliptic curve order computing unit 504 receives h(α) as an input, calculates t mod L as follows, and outputs t mod L.

[0270] Let the polynomial residue class ring R be defined as

R=GF(p)[α,β]/(β{circumflex over ( )}2−α{circumflex over ( )}3−aα−b,h(α)

[0271] To obtain t mod L, it is necessary to find k such that

φp(α,β)=k(α,β) in R

[0272] The elliptic curve order computing unit 504 assigns the values 0˜(L−1)/2 to k′ in sequence, computes the x coordinate of φp((α,β) in R and the x coordinate of k′(α,β) in R, and compares the x coordinate of φp((α,β)) in R and the x coordinate of k′(α,β) in R. When the two x coordinates match for the first time, the elliptic curve order computing unit 504 computes the y coordinate of φp((α,β)) in R and the y coordinate of k (α,β) in R. If the y coordinate of φp((α,β) in R and the y coordinate of k′(α,β) in R match, the elliptic curve order computing unit 504 sets k=k′ mod L, while if the two y coordinates do not match, the elliptic curve order computing unit 504 sets k=L−k′ mod L.

[0273] The elliptic curve order computing unit 504 then determines t=(k{circumflex over ( )}2+p)/k mod L and outputs t.

[0274] (2) Calculation of t mod L{circumflex over ( )}n According to the Isogeny Cycle Algorithm

[0275] The elliptic curve order computing unit 504 finds t mod L{circumflex over ( )}n using the isogeny cycle algorithm.

[0276] In Case 1, the elliptic curve order computing unit 504 first sets n=2, calculates a polynomial H(α) based on k mod L and h(α), and interprets H(α) as h(α). The elliptic curve order computing unit 504 then uses the polynomial h(α) to compute k mod L{circumflex over ( )}n, and decides based on the degree of the polynomial h(α) whether to proceed to the next step. When the degree of h(α) is denoted by deg(h(α)), then it is judged whether

(deg(h){circumflex over ( )}2)*L{circumflex over ( )}2*(L{circumflex over ( )}(2*n))>(|p|){circumflex over ( )}3/135

[0277] where |p| represents the number of bits of p. If this inequality is true, the elliptic curve order computing unit 504 defines

t=(k{circumflex over ( )}2+p)/k mod L{circumflex over ( )}n

[0278] and completes the isogeny cycle. If the inequality is false, the elliptic curve order computing unit 504 adds 1 to n and repeats the above procedure until the inequality is satisfied. As a result, t mod L{circumflex over ( )}n is obtained.

[0279] Although the same computation as in Case 1 is performed in Case 2, in Case 2 the isogeny cycle algorithm might not be applicable. Accordingly, the elliptic curve order computing unit 504 tests whether the isogeny cycle algorithm is applicable before computing t mod L{circumflex over ( )}n.

[0280] On the other hand, k mod L{circumflex over ( )}n (where n>1) is computed as follows.

[0281] Suppose k_i=k mod L{circumflex over ( )}i (1≦t≦n). The elliptic curve order computing unit 504 receives k mod L{circumflex over ( )}(n−1) and h(α) as inputs and calculates k mod L{circumflex over ( )}n in the following way.

[0282] Let the polynomial residue class ring R be defined as

R=GF(p)[α,β]/(β{circumflex over ( )}2−α{circumflex over ( )}3−aα−b,h(α))

[0283] To obtain k mod L{circumflex over ( )}n, it is necessary to find K such that

φp((α,β)=(k_(n−1)+L{circumflex over ( )}(n−1)*k)(α,β) in R

[0284] Assigning the values 0˜(L−1)/2 to k′ in sequence, the elliptic curve order computing unit 504 calculates the x coordinate of φp((α,β) in R and the x coordinate of (k_(n−1)+L{circumflex over ( )}(n−1*k′)(α,β) in R, and compares the x coordinate of φp((α,β) in R and the x coordinate of (k_(n−1)+L{circumflex over ( )}(n−1)*k′)(α,β) in R. When the x coordinates match for the first time, the elliptic curve order computing unit 504 defines

k _(—) n=k_(n−1)+L{circumflex over ( )}(n−1)*k′ mod L{circumflex over ( )}n

[0285] and sets k_n as k mod L{circumflex over ( )}n.

[0286] The above described processing is detailed in J. M. Couveignes, L. Dewaghe, and F. Morain “Isogeny Cycles and the Schoof-Elkies-Atkin Algorithm” LIX/RR/96/03 (1996).

[0287] (1.6.4. Judgement on the Elliptic Curve E by the Elliptic Curve Order Computing Unit 504)

[0288] As mentioned above, when ΠLk{circumflex over ( )}(nk) exceeds 4{square root}p, the elliptic curve order computing unit 504 judges that the computation by the SEA algorithm has been completed, determines the elliptic curve order m, and ends the processing thereof.

[0289] Here, to shorten computation time, the elliptic curve order computing unit 504 tests the elliptic curve E and rejects such E that is to be judged as not being secure by the elliptic curve condition judging unit 505, thereby halting the order computation in progress.

[0290] More specifically, once t mod L has been determined, the elliptic curve order computing unit 504 calculates p+1−t mod L and checks whether p+1−t mod L is 0. If p+1—t mod L is 0, it signifies the order of the elliptic curve E cannot be prime. Accordingly, the elliptic curve order computing unit 504 outputs elliptic curve rejection information to the controlling unit 506 to reject the elliptic curve E, and discontinues the order computation.

[0291] By such rejecting an elliptic curve which is not secure once t mod L has been determined, the elliptic curve order computing unit 504 can avoid needless computations.

[0292] For this processing, see document 1.

[0293] (1.6.5. Elliptic Curve Exponentiation)

[0294] As described once, elliptic curve exponentiation needs to be performed to gain the eigenvalue of φp. Algorithms of computing elliptic curve exponentiation points are presented below.

[0295] (1) Method using a Division Polynomial

[0296] The elliptic curve order computing unit 504 obtains an exponentiation point in the above computation of t mod L, in the following way.

[0297] When using the division polynomial f_n, $\begin{matrix} {{n\left( {\alpha,\beta} \right)} = {\alpha - {{f\_}\left( {n - 1} \right)\quad (\alpha)*{f\_}\left( {n + 1} \right)\quad {(\alpha)/}}}} \\ {{\left( {{f\_ n}{(\alpha)\hat{}2}*{f(\alpha)}} \right),{\beta\left( {{f\_}\left( {n + 2} \right)\quad (\alpha)*} \right.}}} \\ {{{{f\_}\left( {n - 1} \right)\quad {(\alpha)\hat{}2}} - {{f\_}\left( {n - 2} \right)\quad (\alpha)*}}} \\ \left. {\left. {{f\_}\left( {n + 1} \right)\quad {(\alpha)\hat{}2}} \right)/\left( {4*{f\_ n}\quad {(\alpha)\hat{}3}} \right)} \right) \end{matrix}$

[0298] if n is even, or $\begin{matrix} {{n\left( {\alpha,\beta} \right)} = {\alpha - {{f\_}\left( {n - 1} \right)\quad (\alpha)*{f\_}\left( {n + 1} \right)\quad (\alpha)*}}} \\ {{{{{f(\alpha)}/{f\_ n}}{(\alpha)\hat{}2}},{\beta\left( {{f\_}\left( {n + 2} \right)\quad (\alpha)*} \right.}}} \\ {{{{f\_}\left( {n - 1} \right)\quad {(\alpha)\hat{}2}} - {{f\_}\left( {n - 2} \right)\quad (\alpha)*}}} \\ \left. {\left. {{f\_}\left( {n + 1} \right)\quad {(\alpha)\hat{}2}} \right)/\left( {4*\beta*{f(\alpha)}*{f\_ n}\quad {(\alpha)\hat{}3}} \right)} \right) \end{matrix}$

[0299] if n is odd.

[0300] This is described in detail in document 4, pp.485˜486.

[0301] (2) Method Using the Elliptic Curve Arithmetic Operation Over the Polynomial Residue Class Ring R

[0302] The elliptic curve order computing unit 504 finds an exponentiation point in the computation of t mod L{circumflex over ( )}n, as follows.

[0303] The use of the above division polynomial in computing t mod L{circumflex over ( )}n causes inefficiency, since it requires calculation of such an unnecessary division polynomial f_(L{circumflex over ( )}(n−2)) from f_1. Accordingly, the elliptic curve order computing unit 504 computes exponentiation points by elliptic curve arithmetic operations described below.

[0304] Consider an elliptic curve arithmetic operation over a finite field. When a 2-tuple coordinate is used, it is necessary to perform divisions. However, a division over a finite field normally requires an average of 10 times as much computational complexity as a multiplication over the finite field, so that a 3-tuple coordinate which does not require divisions is adopted instead. The same applies for elliptic curve arithmetic operations over a polynomial residue class ring.

[0305] In the following, the first and second components of the 2-tuple coordinate are respectively called x coordinate and y coordinate, whereas the first, second, and third components of the 3-tuple coordinate are respectively called X coordinate, Y coordinate, and Z coordinate.

[0306] Here, Jacobian coordinate over a finite field is employed. Since computation is easier if the input and the output are of the same form, the coordinates of a point on an elliptic curve over the polynomial residue class ring R are expressed as

(X(α):β*Y(α):Z(α))

[0307] which represents the form of the input and the output.

[0308] Then, this form of the input and the output is altered in the Jacobian coordinate through transformation

(X′(α):βY′(α):Z′(α))→(β{circumflex over ( )}2*X′(α):β{circumflex over ( )}4*Y′(α):β*Z′(α))

[0309] Here, β{circumflex over ( )}2=f(α). Therefore, provided that

X(α)=f(α)*X′(α)

Y(α)=f(α){circumflex over ( )}2*Y′(α)

Z(α)=Z′(α)

[0310] then the transformed point takes the form

(X(α):Y(α):β*Z(α))

[0311] (2-1) Projection of Elliptic Curve Points

[0312] The elliptic curve order computing unit 504 transforms the affine coordinates (φ(α),—×φ(α)) of a point on the elliptic curve E using polynomials

X(α)=f(α)×φ(α)

Y(α)=f(α){circumflex over ( )}2×φ(α)

Z(α)=1

[0313] to generate the projective coordinates (X(α):Y(α):β×Z(α)), where φ(α) and φ(α) are polynomials.

[0314] (2-2) Addition and Doubling on the Elliptic Curve E

[0315] For points on the elliptic curve E defined over the polynomial residue class ring R, an elliptic curve arithmetic operation is performed as follows.

[0316] Elliptic curve exponentiation can be split into additions and doublings. As an example, for a point P on the elliptic curve E, calculating 100×P is achieved through 6 doublings and 2 additions of points on E, as can be seen from

100×P=2(2(P+2(2(2(P+2P)))))

[0317] Splitting elliptic curve exponentiation into doublings and additions is done by a signed binary window method which is described in pp.345˜357 in K. Koyama & Y. Tsuruoka “Speeding up Elliptic Cryptosystems by Using a Signed Binary Window Method” Advances in Cryptology—CRYPTO'92, Lecture Notes in Computer Science vol.740, Springer-Verlag (1993).

[0318] For the input of the coordinates of at least one point on the elliptic curve

E: y{circumflex over ( )}2=f(x)

[0319] on the residue class ring R of polynomials in variables α and β with one or more elements of the finite field GF(p) as coefficients, the moduli of the ring R being polynomials β{circumflex over ( )}2−f(α) and h(α), the elliptic curve order computing unit 504 performs an elliptic curve arithmetic operation to compute the coordinates of a point on the elliptic curve E.

[0320] (2-2-1) Addition

[0321] Elliptic curve addition is carried out as follows.

[0322] For the input of points P and Q (P≠±Q)

P=(X 1(α):Y 1(α):β×Z 1(α))

Q=(X 2(α):Y 2(α):β×Z 2(α))

[0323] on the elliptic curve E, the elliptic curve order computing unit 504 calculates

U 1=X 1×Z 2{circumflex over ( )}2=X 1*Z 2*Z 2

U 2=X 2×Z 1{circumflex over ( )}2=X 2*Z 1*Z 1

S 1=Y 1×Z 2{circumflex over ( )}3=Y 1*Z 2*(Z 2{circumflex over ( )}2)

S 2=Y 2×Z 1{circumflex over ( )}3=Y 2*Z 1*(Z 1{circumflex over ( )}2)

H=U 2−U 1

r=S 2−S 1

[0324] and calculates $\begin{matrix} {{X3} = {{- {H\hat{}3}} - {2 \times {U1} \times {H\hat{}2}} + {r\hat{}2}}} \\ {= {{{- \left( {H*H} \right)}*H} - {2 \times {U1}*{H\hat{}2}} + {r*r}}} \\ {{Y3} = {{{- {S1}} \times {H\hat{}3}} + {r \times \left( {{{U1} \times {H\hat{}2}} - {X3}} \right)}}} \\ {= {{{- {S1}} \times {H\hat{}3}} + {r*\left( {{{U1} \times {H\hat{}2}} - {X3}} \right)}}} \\ {{Z3} = {{Z1}*{Z2}*H}} \end{matrix}$

[0325] The elliptic curve order computing unit 504 then computes

β×Z3

[0326] and thereby obtains

P+Q=(X 3(α):Y 3(α):β×Z 3(α))

[0327] as the outcome of adding the points P and Q on the elliptic curve E.

[0328] Note here that, though X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, U1, U2, S1, S2, H, and r are polynomials in the variable a and therefore should be written like X1(α), Y1(α), and Z1(α) to be precise, (α) has been omitted for convenience in writing.

[0329] (2-2-2) Doubling

[0330] Elliptic curve doubling is carried out as follows.

[0331] For the input of the point P

P=(X 1(α):Y 1(α):β×Z 1(α))

[0332] on the elliptic curve E, the elliptic curve order computing unit 504 calculates $\begin{matrix} {S = {{4 \times {X1} \times {Y1}\quad {\,^{\bigwedge}2}} = {4 \times {X1}*{Y1}*{Y1}}}} \\ \begin{matrix} {M = {{3 \times {X1}\quad {\,^{\bigwedge}2}} + {a \times {Z1}\quad {\,^{\bigwedge}4} \times {f(\alpha)}\quad {\,^{\bigwedge}2}}}} \\ {= {{3 \times {X1}*{X1}} + {a \times \left( {\left( {{Z1}*{Z1}} \right)*{f(\alpha)}} \right)*\left( {{Z1}\quad {\,^{\bigwedge}2} \times {f(\alpha)}} \right)}}} \end{matrix} \\ {T = {{{- 2} \times S} + {M*M}}} \end{matrix}$

[0333] and calculates $\begin{matrix} {{X3} = T} \\ \begin{matrix} {{Y3} = {{{- 8} \times {Y1}\quad {\,^{\bigwedge}4}} + {M \times \left( {S - T} \right)}}} \\ {= {{{- 8} \times \left( {{Y1}\quad {\,^{\bigwedge}2}} \right)*\left( {{Y1}\quad {\,^{\bigwedge}2}} \right)} + {M*\left( {S - T} \right)}}} \end{matrix} \\ {{Z3} = {2 \times {Y1}*{Z1}}} \end{matrix}$

[0334] The elliptic curve order computing unit 504 then computes

β×Z3

[0335] and so obtains

2P=(X 3(α):Y 3(α):β×Z 3(α)

[0336] as the outcome of doubling the point P on the elliptic curve E.

[0337] Note once again that, though X1, Y1, Z1, X3, Y3, Z3, S, M, and T are polynomials in the variable a and therefore should be written like X1(α), Y1(α), and Z1(α) to be precise, (α) has been omitted for convenience in writing.

[0338] The numbers of multiplications performed in the above addition formula and doubling formula are respectively 16 and 10, as can be seen from the number of operators * in each of the formulas. When computational complexity of a polynomial multiplication is measured as 1×PMul, computational complexity of the addition is 16×PMul and computational complexity of the doubling is 10×PMul.

[0339] When compared with prior art example 3, the computational complexity of the addition is 1×PMul larger than that of the addition in example 3, whereas the computational complexity of the doubling is 2×PMul smaller than that of the doubling in example 3.

[0340] In general, doubling is more frequently repeated than addition, so that the decrease in computational complexity of the doubling greatly benefits a reduction in overall computational complexity.

[0341] (2-3) Deduction of the Addition Formula and the Doubling Formula

[0342] The following is an explanation on how the above addition formula and doubling formula are deduced.

[0343] Addition and doubling for the elliptic curve E over a finite field in the Jacobian coordinate are as follows. Here, P=(x1:y1:z1), Q=(x2:y2:z2), and P+Q=R=(x3:y3:z3). (Addition) (where P≠±Q)

x 3=−H{circumflex over ( )}3−2*U 1*H{circumflex over ( )}2+r{circumflex over ( )}2

y 3=—S 1*H{circumflex over ( )}3+r*(U 1*H{circumflex over ( )}2×x 3)

z 3=z 1*z 2*H

[0344] where

U 1=x 1*z 2{circumflex over ( )}2

U 2=x 2*z 1{circumflex over ( )}2

S 1=y 1*z 2{circumflex over ( )}3

S 2=y 2*z 1{circumflex over ( )}3

H=U 2−U 1

r=S 2−S 1

[0345] (Doubling) (where P=Q)

x3=T

y 3=−8*y 1{circumflex over ( )}4+M*(S−T)

z 3=2*y 1*z 1

[0346] where

S=4*x 1*y 1{circumflex over ( )}2

M=3*x 1{circumflex over ( )}2+a*z 1{circumflex over ( )}4

T=−2*S+M{circumflex over ( )}2

[0347] These addition and doubling are then applied onto the polynomial residue class ring R.

[0348] Here, P=(X1(α):Y1(α):β*Z1(α)), Q=(X2(α):Y2(α):β*Z2(α)), and P+Q=R=(X3(α):Y3(α):(β*Z3(α)).

[0349] Also,

[0350] x1=X1(α), y1=Y1(α), z1=β*Z1(α)

[0351] x2=X2(α), y2=Y2(α), z2=β*Z2(α)

[0352] x3=X3(α), y3=Y3(α), z3=β*Z3(α)

[0353] are given.

[0354] (Addition for the Elliptic Curve E on the Polynomial Residue Class Ring R in Jacobian Coordinate)

[0355] Addition for the elliptic curve E on the polynomial residue class ring R in the Jacobian coordinate is the following:

U 1=X 1*β{circumflex over ( )}2*Z 2{circumflex over ( )}2

U 2=X 2*β{circumflex over ( )}2*Z 1{circumflex over ( )}2

S 1=Y 1*β{circumflex over ( )}3*Z 2{circumflex over ( )}3

S 2=Y 2*β{circumflex over ( )}3*Z 1{circumflex over ( )}3

[0356] Let U1′=U1/β{circumflex over ( )}2, U2′=U2/β{circumflex over ( )}2, S1′=S1/β{circumflex over ( )}3, and S2′=S2/β{circumflex over ( )}3. Then

H=(U 2′−U 1′)*β{circumflex over ( )}2

r=(S 2′—S 1′)*β{circumflex over ( )}3

[0357] Here, let H′=H/β{circumflex over ( )}2 and r′=r/β{circumflex over ( )}3 Then

x 3=−H′{circumflex over ( )}3*β{circumflex over ( )}6−2*U 1′*β{circumflex over ( )}2*H′{circumflex over ( )}2*β{circumflex over ( )}4+r′{circumflex over ( )}2*(β{circumflex over ( )}3){circumflex over ( )}2

[0358] Here, let x3′=x3/β{circumflex over ( )}6. Then

x 3′=—H′{circumflex over ( )}3−2*U 1′*H′{circumflex over ( )}2+r′{circumflex over ( )}2

y 3=−S 1′*β{circumflex over ( )}3*H′{circumflex over ( )}3*β{circumflex over ( )}6+r′*β{circumflex over ( )}3*(U 1′*β{circumflex over ( )}2*H′{circumflex over ( )}2*β{circumflex over ( )}4−x 3′*β{circumflex over ( )}6)

[0359] Here, let y3′=y3/β{circumflex over ( )}9. Then

y 3′=−S 1′*H′{circumflex over ( )}3+r′*(U 1′*H′{circumflex over ( )}2−x 3′)

z 3=Z 1*β*Z 2*β*H′*β{circumflex over ( )}2

[0360] Here, let z3′=z3/β{circumflex over ( )}4. Then

X 3=x 3′*β{circumflex over ( )}6

Y 3=y 3′*β{circumflex over ( )}9

β*Z 3=z 3′*β{circumflex over ( )}4

[0361] Accordingly,

(X 3:Y 3:β*Z 3)=(X 3/β{circumflex over ( )}6:Y 3/β{circumflex over ( )}9:β*Z 3/β{circumflex over ( )}4)

[0362] so that

(X 3:Y 3:β*Z 3)=(x 3′:y 3′:β*z 3′)

[0363] This being so, setting x3′, y3′, z3′, U1′, U2′, S1′, S2′, H′, and r′ respectively as X3, Y3, Z3, U1, U2, S1, S2, H, and r yields the addition formula of the invention.

[0364] (Doubling for the Elliptic Curve E on the Polynomial Residue Class Ring R in Jacobian Coordinate)

[0365] Doubling for the elliptic curve E on the polynomial residue class ring R in the Jacobian coordinate is the following:

S=4*X 1*Y 1{circumflex over ( )}2

M=3*X 1{circumflex over ( )}2+a*Z 1{circumflex over ( )}4*β{circumflex over ( )}4

[0366] Since β{circumflex over ( )}2=f (α),

M=3*X 1{circumflex over ( )}2+a*Z 1{circumflex over ( )}4*f(α){circumflex over ( )}2

[0367] and

x3=T

y 3=−8*Y 1{circumflex over ( )}4+M*(S−T)

z 3=2*Y 1*Z 1*β

[0368] From X3=x3, Y3=y3, and Z3=z3/β=2*Y1*Z1, the doubling formula of the invention is deduced.

[0369] (1.7. Elliptic Curve Condition Judging Unit 505)

[0370] The elliptic curve condition judging unit 505 reads the prime p and the order m from the information storing unit 507 and judges whether the order m is a prime and whether m≠p. The elliptic curve condition judging unit 505 then outputs security judgement information showing whether m is a prime not equal to p, to the controlling unit 506.

[0371] (1.8. Controlling Unit 506)

[0372] The controlling unit 506 receives the prime p and the instruction to construct an elliptic curve, from the inputting unit 508.

[0373] On receiving the instruction, the controlling unit 506 writes the prime p into the information storing unit 507 and instructs the random number generating unit 501 to generate a random number.

[0374] The controlling unit 506 then controls the random number generating unit 501, the elliptic curve setting unit 502, the elliptic curve finitude judging unit 503, the elliptic curve order computing unit 504, and the elliptic curve condition judging unit 505 to sequentially execute their respective procedures.

[0375] Also, the controlling unit 506 receives the order judgement information from the elliptic curve finitude judging unit 503. If the received information shows that the order ml and the order m2 are relatively prime, the controlling unit 506 has the elliptic curve order computing unit 504 commence the processing thereof. If the information shows that m1 and m2 are not relatively prime, the controlling unit 506 cancels the processing of the elliptic curve order computing unit 504 and instead instructs the random number generating unit 501 to generate a random number.

[0376] Also, when receiving the elliptic curve rejection information from the elliptic curve order computing unit 504, the controlling unit 506 cancels the processing of the elliptic curve condition judging unit 505 and instead instructs the random number generating unit 501 to generate a random number.

[0377] Also, the controlling unit 506 receives the security judgement information from the elliptic curve condition judging unit 505. If the received information shows that the order m is a prime not equal to the prime p, the controlling unit 506 reads the parameters a and b from the information storing unit 507 and passes the read parameters a and b to the outputting unit 509. If the read information does not show that m is a prime not equal to p, the controlling unit 506 controls the random number generating unit 501 to generate a random number.

[0378] (1.9. Outputting Unit 509)

[0379] The outputting unit 509 receives the parameters a and b from the controlling unit 506 and writes the parameters a and b into the parameter storing unit 510.

[0380] (1.10. Parameter Storing Unit 510)

[0381] The parameter storing unit 510 is implemented by the hard disk 14 and stores the parameters a and b.

[0382] (2. Operation of the Elliptic Curve Construction Device 500)

[0383] The following is an explanation of the operation of the elliptic curve construction device 500.

[0384] (2.1. General Operation of the Elliptic Curve Construction Device 500)

[0385] The general operation of the elliptic curve construction device 500 is explained below with reference to FIG. 7.

[0386] The inputting unit 508 receives from the user a prime p and an instruction to construct an elliptic curve E, and passes the prime p and the instruction to the controlling unit 506 (S100).

[0387] The controlling unit 506 instructs the random number generating unit 501 to generate a random number, and the random number generating unit 501 accordingly generates a random number t and writes the random number t into the information storing unit 507 (S101).

[0388] The elliptic curve setting unit 502 reads the random number t from the information storing unit 507 and sets −3 and t respectively as parameters a and b of the elliptic curve E (S102).

[0389] The elliptic curve finitude judging unit 503 chooses primes p1 and p2, calculates the orders m1 and m2 of respective elliptic curves Ep1 and Ep2 produced by reducing the elliptic curve E on a rational number field modulo p1 and p2 (S103), and checks whether m1 and m2 are relatively prime (S104). If m1 and m2 are not relatively prime, the operation returns to step S101 under the control of the controlling unit 506.

[0390] If m1 and m2 are relatively prime, the controlling unit 506 instructs the elliptic curve order computing unit 504 to compute the order m of the elliptic curve E, and the elliptic curve order computing unit 504 accordingly computes the order m using the SEA algorithm (S105).

[0391] If the controlling unit 506 receives elliptic curve rejection information (S106), the operation returns to step S101.

[0392] If the controlling unit 506 does not receive the elliptic curve rejection information, the elliptic curve condition judging unit 505 judges whether the order m of the elliptic curve E is a prime not equal to the prime p (S107). When m is a prime and m≠p, the controlling unit 506 instructs the outputting unit 509 to output the parameters a and b, and the outputting unit 509 accordingly outputs the parameters a and b (S108).

[0393] When it is not judged in step S107 that the order m is a prime not equal to p, the operation returns to step S101.

[0394] (2.2. Operation of the Elliptic Curve Order Computing Unit 504)

[0395] The operation of the elliptic curve order computing unit 504 is explained below with reference to FIG. 8.

[0396] Let m be the order of the elliptic curve E and t be such that

m=p+1−t

[0397] Also, let

f(x)=x{circumflex over ( )}3+ax+b

[0398] The elliptic curve order computing unit 504 sets an integer variable L at an initial value 2 (S910).

[0399] The elliptic curve order computing unit 504 then calculates the number of linear factors after factoring a modular polynomial ΦL(T,j(E)) in a ring GF(p)[T] of polynomials in a variable T (S911).

[0400] When the number of linear factors is 2 (S912), the elliptic curve order computing unit 504 solves t mod L (S913) and solves t mod L{circumflex over ( )}n (n=2, 3, . . . ) according to the isogeny cycle algorithm (S914).

[0401] When the number of linear factors is 1 or L+1 (S912), the elliptic curve order computing unit 504 solves t mod L (S915) and judges whether the isogeny cycle algorithm is applicable (S916). If the isogeny cycle algorithm is applicable, the elliptic curve order computing unit 504 computes t mod L{circumflex over ( )}n (n=2, 3, . . . ) according to the isogeny cycle algorithm (S917).

[0402] When the number of linear factors is 0 (S912), on the other hand, the elliptic curve order computing unit 504 narrows down possible values of t mod L from the set [0, 1, . . . , L−1] (S918).

[0403] Next, if

L 1{circumflex over ( )}(n 1)×L 2(n 2)×. . . ×Lk{circumflex over ( )}(nk)<4×p(1/2)

[0404] (where L1, L2, . . . , and Lk are primes and Lk=L)

[0405] is satisfied (S919), the elliptic curve order computing unit 504 increases L to the next prime (S921) and returns to step S911.

[0406] If the inequality in step S919 is not satisfied, the elliptic curve order computing unit 504 determines the order m according to the match & sort algorithm and writes the order m into the information storing unit 507 (S920).

[0407] (2.3. Operation of Computing t mod L{circumflex over ( )}n by the Elliptic Curve Order Computing Unit 504)

[0408] The operation of computing t mod L{circumflex over ( )}n by the elliptic curve order computing unit 504 is explained below with reference to FIG. 9.

[0409] In Case 1, the elliptic curve order computing unit 504 first sets n=2 (S131), computes a polynomial H(α) based on k mod L and h(α) (S132), and assigns the outcome to h(α) (S133). The elliptic curve order computing unit 504 then computes k mod L{circumflex over ( )}n using the polynomial h(α) (S134) and decides based on the degree of the polynomial h(α) whether to proceed to the next step. Assuming that the degree of h(α) is denoted by deg(h(α)), it is judged whether

(deg(h){circumflex over ( )}2)*L{circumflex over ( )}2*(L{circumflex over ( )}(2*n))>(|p|){circumflex over ( )}3/135

[0410] where |p| represents the number of bits of p (S135). If this inequality is true, the elliptic curve order computing unit 504 defines

t=(k{circumflex over ( )}2+p)/k mod L{circumflex over ( )}n

[0411] (S137) and completes the isogeny cycle. If the inequality is false, the elliptic curve order computing unit 504 adds 1 to n(S136) and repeats steps S132˜Sl35 until the inequality is satisfied.

[0412] As a result, t mod L{circumflex over ( )}n is obtained.

[0413] Although the same computation as in Case 1 is carried out in Case 2, in Case 2 the isogeny cycle algorithm might not be applicable. Therefore, in Case 2 the elliptic curve order computing unit 504 tests whether the isogeny cycle algorithm is applicable prior to the computation of t mod L{circumflex over ( )}n (see FIG. 8).

[0414] (2.4. Doubling or Addition of Points on the Elliptic Curve E by the Elliptic Curve Order Computing Unit 504)

[0415] To compute an exponentiation point kP on the elliptic curve E, the elliptic curve order computing unit 504 first splits the computation of kP into doublings and additions on the elliptic curve E, and performs the doublings and the additions in accordance with the procedure given below. Here, the type of the arithmetic operation (i.e. doubling or addition) to be performed and the affine coordinates of one or two elliptic curve points which are subjected to the arithmetic operation are given in advance of the procedure. By repeating the following procedure for all of the doublings and additions, the exponentiation point kP is obtained.

[0416] The elliptic curve arithmetic operation on the elliptic curve E by the elliptic curve order computing unit 504 is explained below with reference to FIG. 10.

[0417] The elliptic curve order computing unit 504 performs a doubling or an addition on the elliptic curve E: y{circumflex over ( )}2=f(x) over the residue class ring, modulo polynomials β{circumflex over ( )}2−f(α) and h(α), of polynomials in two variables α and β (where f(α)=α{circumflex over ( )}3+aα+b, a and b are constants, and h(α) is a polynomial in the variable and α), in the following way.

[0418] The elliptic curve order computing unit 504 receives operation information indicating addition and the affine coordinates of two different points on the elliptic curve E which are subjected to the addition, or receives operation information indicating doubling and the affine coordinates of a single point on the elliptic curve E which is subjected to the doubling. Let

(X1(α),β×Y1(α))

(X2(α),β×Y2(α))

[0419] be the affine coordinates of the two different points on the elliptic curve E, and

(X1(α),β×Y1(α))

[0420] be the affine coordinates of the single point on the elliptic curve E (S121).

[0421] The elliptic curve order computing unit 504 transforms the received affine coordinates into projective coordinates. The transformation is carried out by converting the affine coordinates (φ(α),β×φ(α)) (φ(α) and φ(α) polynomials) of some point on the elliptic curve E using polynomials

X(a)=f(α)×φ(α)

Y(α)=f(α){circumflex over ( )}2×φ(α)

Z(α)=1

[0422] and so generating the projective coordinates (X(α):Y(α):β×Z(α)). In the present example, the affine coordinates of the two different points are transformed into the projective coordinates

(X1(α):Y1(α):βZ1(α))

(X2(α):Y2(α):β×Z2(α))

[0423] and the affine coordinates of the single point are transformed into the projective coordinates

(X1(α):Y1(α):β×Z1(α))

[0424] (Sl22).

[0425] The elliptic curve order computing unit 504 then checks whether the received operation information indicates addition or doubling (Sl23). If addition is indicated, the elliptic curve order computing unit 504 computes

U 1(α)=X 1(α)×Z 2(α){circumflex over ( )}2

U 2(α)=X 2(α)×Z 1(α){circumflex over ( )}2

S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3

S 2(α)=Y 2(β)×Z 1(α){circumflex over ( )}3

H(α)=U 2(α)−U 1(α)

r(α)=S 2(α)−S 1(α)

[0426] (Sl24) and computes

X 3(α)=—H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2

Y 3(α)=—S 1(α)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α))

Z 3(α)=Z 1(α)×Z 2(α)×H(α)

[0427] (S125).

[0428] If, on the other hand, doubling is indicated, the elliptic curve order computing unit 504 computes

S(α)=4×X 1(α)×Y 1(α){circumflex over ( )}2

M(α)=3×X 1(α){circumflex over ( )}2+a× Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2

T(α)=−2×S(α)+M(α){circumflex over ( )}2

[0429] (S126) and computes

X 3(α)=T(α)

Y 3(α)=—8×Y 1(α){circumflex over ( )}4+M(α)×(S(α)−T(α))

Z 3(α)=2×Y 1(α)×Z 1(α)

[0430] (S127).

[0431] Lastly, the elliptic curve order computing unit 504 outputs the projective coordinates (X3(α):Y3(α):β×Z3(α)) (S128).

[0432] (3. Conclusion)

[0433] As described above, the elliptic curve setting unit 502 is likely to choose a secure elliptic curve beforehand, so that the processes of choosing an elliptic curve and testing its security do not have to be repeated over and over again. Accordingly, overall computational complexity in the elliptic curve construction device 500 is reduced.

[0434] Also, the elliptic curve finitude judging unit 503 assesses the security of the elliptic curve by checking whether the elliptic curve contains a point with a finite order, prior to the computation of the elliptic curve order. Since the elliptic curve which is judged as not secure is rejected at this stage, unnecessary calculation of the order of such an elliptic curve is avoided, with it being possible to reduce the overall computational complexity in the elliptic curve construction device 500.

[0435] Also, in computation of the exponentiation point kP on the elliptic curve by the elliptic curve order computing unit 504, doubling is more frequently repeated than addition. In general, computational complexity to compute kP according to the signed binary window method can be expressed as

|k|×(ED+EA/3)

[0436] where EA denotes the computational complexity of an addition, ED denotes the computational complexity of a doubling, and |k| denotes the number of bits of k. With the signed binary window method, computational complexity for finding kP according to the invention is 15.3×PMul×|k|, whereas computational complexity for finding kP according to prior art example 3 is 17×PMul×|k|. As a result, the overall computational complexity is further reduced according to the invention.

[0437] (4. Modifications)

[0438] Although the elliptic curve construction device according to the invention has been explained based on the embodiment, the invention is not limited to such. For example, the following modifications are possible.

[0439] (1) The invention may be an elliptic curve application device provided with the elliptic curve construction device described above. Examples of such an elliptic curve application device are an encrypted communication system made up of an encryption device and a decryption device, a digital signature system made up of a digital signature device and a signature verification device, and an error-correction communication system made up of an error-correction code transmission device and an error correction device.

[0440] The encrypted communication system uses elliptic curves to perform communication without the communicated content being revealed to third parties. The digital signature system uses elliptic curves to enable the receiver to verify whether the communicated content is valid or whether the information is from the stated sender. The error-correction communication system uses elliptic curves to recover original information from information which has been altered or lost while it was being transmitted on a communication line.

[0441] (2) Though the elliptic curve setting unit 502 has set the parameters a and b of the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b respectively as a=−3 and b=t, the parameters a and b may instead be set in the following fashion.

[0442] The elliptic curve setting unit 502 defines the above shown discriminant TD against the elliptic curve E: y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b (a and b are integers) on the rational number field, and sets the parameters a and b such that the probability of the discriminant TD having a square factor will end up being lower than a predetermined threshold value. As an example, the predetermined threshold value is 0.001. By doing so, the chance that a secure elliptic curve is formed increases, as explained in the above embodiment.

[0443] (3) The invention may be an elliptic curve arithmetic operation device for performing elliptic curve arithmetic operations for points on the elliptic curve defined over the polynomial residue class ring, as embodied by the elliptic curve order computing unit 504.

[0444] (4) The invention may be an elliptic curve order computation device for computing the order of the elliptic curve, as embodied by the elliptic curve order computing unit 504.

[0445] (5) The invention may be an elliptic curve arithmetic operation method, an elliptic curve order computation method, or an elliptic curve construction method shown in the embodiment.

[0446] Also, the invention may by a computer program that implements the elliptic curve arithmetic operation method, the elliptic curve order computation method, or the elliptic curve construction method on a computer, or digital signals that compose such a computer program.

[0447] Further, the invention may be a computer-readable storage medium, such as a floppy disk, a hard disk, a CD-ROM (compact disk read only memory), an MO (magneto-optical disk), a DVD (digital versatile disk), a DVD-ROM, a DVD-RAM, or a semiconductor memory, that stores the computer program or the digital signals. Likewise, the invention may be the computer program or digital signals stored in such a storage medium.

[0448] The invention can also be realized by transferring the computer program or the digital signals via a network such as a telecommunication network, a radio or cable communication network, or the Internet.

[0449] (6) Various combinations of the embodiment and the modifications stated above, as well as combinations of the modifications themselves, are possible.

[0450] Although the present invention has been fully described by way of examples with reference to the accompanying drawings, it is to be noted that various changes and modifications will be apparent to those skilled in the art. Therefore, unless such changes and modifications depart from the scope of the present invention, they should be construed as being included therein. 

What is claimed is:
 1. An elliptic curve arithmetic operation device for performing one of an addition and a doubling on an elliptic curve E: y{circumflex over ( )}2=f (x) on a residue class ring of polynomials in two variables α and β, moduli of the residue class ring being polynomials β{circumflex over ( )}2−f (a) and h(α), where f(α)=α{circumflex over ( )}3+aα+b, a and b are constants, and h(α) is a polynomial in the variable α, the elliptic curve arithmetic operation device comprising: acquiring means for acquiring affine coordinates of at least one point on the elliptic curve E and operation information indicating one of the addition and the doubling, from an external source; transforming means for performing a coordinate transformation on the acquired affine coordinates to generate Jacobian coordinates, the coordinate transformation being transforming affine coordinates (φ(α),β×φ(α)) of a given point on the elliptic curve E using polynomials X(α)=f(α)×φ(α) Y(α)=f(α){circumflex over ( )}2×φ(α) Z(α)=1 into Jacobian coordinates (X(α):Y(a):β×Z(α)), φ(α) and φ(α) being polynomials; and operating means for performing one of the addition and the doubling indicated by the acquired operation information, on the generated Jacobian coordinates to obtain Jacobian coordinates of a point on the elliptic curve E.
 2. The elliptic curve arithmetic operation device of claim 1, wherein the acquiring means (a) in a first case acquires affine coordinates of two different points on the elliptic curve E and operation information indicating the addition, and (b) in a second case acquires affine coordinates of a single point on the elliptic curve E and operation information indicating the doubling, wherein the transforming means (a) in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates of the two different points, and (b) in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates of the single point, and wherein the operating means (a) in the first case performs the addition indicated by the acquired operation information on the generated Jacobian coordinates of the two different points to obtain the Jacobian coordinates of the point on the elliptic curve E, and (b) in the second case performs the doubling indicated by the acquired operation information on the generated Jacobian coordinates of the single point to obtain the Jacobian coordinates of the point on the elliptic curve E.
 3. The elliptic curve arithmetic operation device of claim 2, wherein in the first case the acquiring means acquires affine coordinates (X1(α),β×Y1(α)) (X2(α),β×Y2(α)) of the two different points on the elliptic curve E and the operation information indicating the addition, the transforming means performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates (X1(α):Y1(α):βZ1(α)) (X2(α):Y2(α):β×Z2(α)) of the two different points, and the operating means computes U 1(α)=X 1(α):β×Z 2(α){circumflex over ( )}2 U 2(α)=X 2(α):β×Z 1(α){circumflex over ( )}2 S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3 S 2(α)=Y 2(α)×Z 1(α){circumflex over ( )}3 H(α)=U 2(α)−U 1(α) r(α)=S 2(α)−S 1(α) and computes X 3(α)=−H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2 Y 3(α)=−S 1(α)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α)) Z 3(α)=Z 1(α)×Z 2(α)×H(α) to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 4. The elliptic curve arithmetic operation device of claim 2, wherein in the second case the acquiring means acquires affine coordinates (X1(α),β×Y1(α)) of the single point on the elliptic curve E and the operation information indicating the doubling, the transforming means performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) of the single point, and the operating means computes S(α)=4×X 1(α)×Y 1(α){circumflex over ( )}2 M(α)=3×X 1(α){circumflex over ( )}2+a×Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2 T(α)=−2×S(α)+M(α){circumflex over ( )}2 and computes X 3(α)=T(α) Y 3(α)=−8×Y 1(α){circumflex over ( )}4+M(α)×(S(α)−T(α)) Z 3(α)=2×Y 1(α)×Z 1(α) to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 5. The elliptic curve arithmetic operation device of claim 2, wherein the acquiring means (a) in the first case acquires affine coordinates (X1(α),β×Y1(α)) (X2(α),β×Y2(α)) of the two different points on the elliptic curve E and the operation information indicating the addition, and (b) in the second case acquires affine coordinates (X1(α),β×Y1(α)) of the single point on the elliptic curve E and the operation information indicating the doubling, wherein the transforming means (a) in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) (X2(α):Y2(α):β×Z2(α)) of the two different points, and (b) in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) of the single point, and wherein the operating means (a) in the first case computes U 1(α)=X 1(α)×Z 2(α){circumflex over ( )}2 U 2(α)=X 2(α)×Z 1(α){circumflex over ( )}2 S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3 S 2(α)=Y 2(α)×Z 1(α){circumflex over ( )}3 H(α)=U 2(α)−U 1(α) r(α)=S 2(α)−S 1(α) and computes X 3(α)=−H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2 Y 3(α)=−S 1(α)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α)) Z 3(α)=Z 1(α)×Z 2(α)×H(α) to obtain Jacobian coordinates (X3(α):Y3(α):α×Z3(α)) of the point on the elliptic curve E, and (b) in the second case computes S(α)=4×X 1(α)×Y 1(α){circumflex over ( )}2 M(α)=3×X 1(α){circumflex over ( )}2+a×Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2 T(α)=−2×S(α)+M(α){circumflex over ( )}2 and computes X 3(α)=T(α) Y 3(α)=−8×Y 1(α){circumflex over ( )}4+M(α)×(S(α)−T(α)) Z 3(α)=2×Y 1(α)×Z 1(α) to obtain the Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 6. An elliptic curve order computation device for computing an order of an elliptic curve according to a Schoof-Elkies-Atkin algorithm, comprising the elliptic curve arithmetic operation device of claim
 1. 7. The elliptic curve order computation device of claim 6 comprising the elliptic curve arithmetic operation device of claim
 2. 8. The elliptic curve order computation device of claim 7 comprising the elliptic curve arithmetic operation device of claim
 5. 9. An elliptic curve construction device for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, the elliptic curve construction device comprising: random number generating means for generating a random number; parameter generating means for selecting the parameters of the elliptic curve E using the generated random number, in such a manner that a probability of a discriminant of the elliptic curve E having any square factor is lower than a predetermined threshold value; finitude judging means for judging whether the elliptic curve E defined by the selected parameters has any point whose order is finite on a rational number field; order computing means for computing an order m of the elliptic curve E when the finitude judging means judges that the elliptic curve E does not have any point whose order is finite on the rational number field; security judging means for judging whether a condition that the computed order m is a prime not equal to the prime p is satisfied; repeat controlling means for controlling the random number generating means, the parameter generating means, the finitude judging means, the order computing means, and the security judging means respectively to repeat random number generation, parameter Selection, finitude judgement, order computation, and security judgement until the condition is satisfied; and parameter outputting means for outputting the selected parameters when the condition is satisfied.
 10. The elliptic curve construction device of claim 9, wherein the elliptic curve E is expressed as y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b, where parameters a and b are constants, and wherein the parameter generating means selects −3 and the random number respectively as the parameters a and b so that the probability of the discriminant of the elliptic curve E having any square factor is lower than the predetermined threshold value.
 11. The elliptic curve construction device of claim 10, wherein the finitude judging means, given two primes p1 and p2 beforehand where p1≠p2, interprets the elliptic curve E as an elliptic curve EQ on the rational number field, computes orders m1 and m2 of respective elliptic curves Ep1 and Ep2 which are produced by reducing the elliptic curve EQ modulo p1 and p2, judges whether the orders m1 and m2 are relatively prime, and, if the orders m1 and m2 are relatively prime, judges that the elliptic curve E does not have any point whose order is finite on the rational number field.
 12. The elliptic curve construction device of claim 11, wherein the finitude judging means, given the primes p1=5 and p2=7 beforehand, computes the orders m1 and m2 of the respective elliptic curves Ep1 and Ep2 produced by reducing the elliptic curve EQ modulo p1=5 and p2=7.
 13. The elliptic curve construction device of claim 11, wherein the order computing means computes the order m of the elliptic curve E according to a Schoof-Elkies-Atkin algorithm and includes elliptic curve arithmetic operating means for performing one of an addition and a doubling on the elliptic curve E: y{circumflex over ( )}2=f(x) on a residue class ring of polynomials in variables α and β, moduli of the residue class ring being polynomials β{circumflex over ( )}2−f(α) and h(α), where f(α)=α{circumflex over ( )}3+aα+b and h(α) is a polynomial in the variable α, wherein the elliptic curve arithmetic operating means includes the elliptic curve arithmetic operation device of claim
 1. 14. The elliptic curve construction device of claim 13, wherein the elliptic curve arithmetic operating means includes the elliptic curve arithmetic operation device of claim
 2. 15. The elliptic curve construction device of claim 14, wherein the elliptic curve arithmetic operating means includes the elliptic curve arithmetic operation device of claim
 5. 16. An elliptic curve application device that uses elliptic curves, comprising elliptic curve constructing means for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 9. 17. The elliptic curve application device of claim 16, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 10. 18. The elliptic curve application device of claim 17, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 11. 19. The elliptic curve application device of claim 18, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 12. 20. The elliptic curve application device of claim 18, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 13. 21. The elliptic curve application device of claim 20, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 14. 22. The elliptic curve application device of claim 21, wherein the elliptic curve constructing means includes the elliptic curve construction device of claim
 15. 23. An elliptic curve arithmetic operation method used in an elliptic curve arithmetic operation device equipped with an acquiring means, a transforming means, and an operating means, for performing one of an addition and a doubling on an elliptic curve E: y{circumflex over ( )}2=f(x) on a residue class ring of polynomials in two variables α and β, moduli of the residue class ring being polynomials β{circumflex over ( )}2−f(α) and h(α), where f(α)=α{circumflex over ( )}3+aα+b, a and b are constants, and h(α) is a polynomial in the variable α, the elliptic curve arithmetic operation method comprising: an acquiring step performed by the acquiring means, for acquiring affine coordinates of at least one point on the elliptic curve E and operation information indicating one of the addition and the doubling, from an external source; a transforming step performed by the transforming means, for performing a coordinate transformation on the acquired affine coordinates to generate Jacobian coordinates, the coordinate transformation being transforming affine coordinates (φ(α),β×φ(α)) of a given point on the elliptic curve E using polynomials X(α)=f(α)×φ(α) Y(α)=f(α){circumflex over ( )}2×φ(α) Z(α)=1 into Jacobian coordinates (X(α):Y(α):β×Z(α)), φ(α) and φ(α) being polynomials; and an operating step performed by the operating means, for performing one of the addition and the doubling indicated by the acquired operation information, on the generated Jacobian coordinates to obtain Jacobian coordinates of a point on the elliptic curve E.
 24. An elliptic curve construction method used in an elliptic curve construction device equipped with random number generating means, parameter generating means, finitude judging means, order computing means, security judging means, repeat controlling means, and parameter outputting means, for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, the elliptic curve construction method comprising: a random number generating step performed by the random number generating means, for generating a random number; a parameter generating step performed by the parameter generating means, for selecting the parameters of the elliptic curve E using the generated random number, in such a manner that a probability of a discriminant of the elliptic curve E having any square factor is lower than a predetermined threshold value; a finitude judging step performed by the finitude judging means, for judging whether the elliptic curve E defined by the selected parameters has any point whose order is finite on a rational number field; an order computing step performed by the order computing means, for computing an order m of the elliptic curve E when the finitude judging step judges that the elliptic curve E does not have any point whose order is finite on the rational number field; a security judging step performed by the security judging means, for judging whether a condition that the computed order m is a prime not equal to the prime p is satisfied; a repeat controlling step performed by the repeat controlling means, for controlling the random number generating step, the parameter generating step, the finitude judging step, the order computing step, and the security judging step respectively to repeat random number generation, parameter selection, finitude judgement, order computation, and security judgement until the condition is satisfied; and a parameter outputting step performed by the parameter outputting means, for outputting the selected parameters when the condition is satisfied.
 25. A computer-readable storage medium storing an elliptic curve arithmetic operation program used in an elliptic curve arithmetic operation device equipped with acquiring means, transforming means, and operating means, for performing one of an addition and a doubling on an elliptic curve E: y{circumflex over ( )}2=f(x) on a residue class ring of polynomials in two variables α and β, moduli of the residue class ring being polynomials {circumflex over ( )}2−f(α) and h(α), where f(α)=α{circumflex over ( )}3+aα+b, a and b are constants, and h(α) is a polynomial in the variable α, the elliptic curve arithmetic operation program comprising: an acquiring step performed by the acquiring means, for acquiring affine coordinates of at least one point on the elliptic curve E and operation information indicating one of the addition and the doubling, from an external source; a transforming step performed by the transforming means, for performing a coordinate transformation on the acquired affine coordinates to generate Jacobian coordinates, the coordinate transformation being transforming affine coordinates (φ(α),β×φ(α)) of a given point on the elliptic curve E using polynomials X(α)=f(α)×φ(α) Y(α)=f(α){circumflex over ( )}2×φ(α) Z(α)=1 into Jacobian coordinates (X(α):Y(α):β×Z(α)), φ(α) and φ(α) being polynomials; and an operating step performed by the operating means, for performing one of the addition and the doubling indicated by the acquired operation information, on the generated Jacobian coordinates to obtain Jacobian coordinates of a point on the elliptic curve E.
 26. The storage medium of claim 25, wherein the acquiring step (a) in a first case acquires affine coordinates of two different points on the elliptic curve E and operation information indicating the addition, and (b) in a second case acquires affine coordinates of a single point on the elliptic curve E and operation information indicating the doubling, wherein the transforming step (a) in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates of the two different points, and (b) in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates of the single point, and wherein the operating step (a) in the first case performs the addition indicated by the acquired operation information on the generated Jacobian coordinates of the two different points to obtain the Jacobian coordinates of the point on the elliptic curve E, and (b) in the second case performs the doubling indicated by the acquired operation information on the generated Jacobian coordinates of the single point to obtain the Jacobian coordinates of the point on the elliptic curve E.
 27. The storage medium of claim 26, wherein in the first case the acquiring step acquires affine coordinates (X1(α),β×Y1(α)) (X2(α),β×Y2(α)) of the two different points on the elliptic curve E and the operation information indicating the addition, the transforming step performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) (X2(α):Y2(α):β×Z2(α)) of the two different points, and the operating step computes U 1(α)=X 1(α)×Z 2(α){circumflex over ( )}2 U 2(α)=X 2(α)×Z 1(α){circumflex over ( )}2 S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3 S 2(α)=Y 2(α)×Z 1(α){circumflex over ( )}3 H(α)=U 2(α)−U 1(α) r(α)=S 2(α)−S 1(α) and computes X 3(α)=−H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2 Y 3(α)=—S 1(α)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α)) Z 3(α)=Z 1(α)×Z 2(α)×H(α) to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 28. The storage medium of claim 26, wherein in the second case the acquiring step acquires affine coordinates (X1(α),β×Y1(α)) of the single point on the elliptic curve E and the operation information indicating the doubling, the transforming step performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) of the single point, and the operating step computes S(α)=4×X 1(α)×Y 1(α){circumflex over ( )}2 M(α)=3×X 1(α){circumflex over ( )}2+a×Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2 T(α)=−2×S(α)+M(α){circumflex over ( )}2 and computes X 3(α)=T(α) Y 3(α)=−8×Y 1(α) 4+M(α)×(S(α)−T(α)) Z 3(α)=2×Y 1(α)×Z 1(α) to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 29. The storage medium of claim 26, wherein the acquiring step (a) in the first case acquires affine coordinates (X1(α),β×Y1(α)) (X2(α),β×Y2(α)) of the two different points on the elliptic curve E and the operation information indicating the addition, and (b) in the second case acquires affine coordinates (X1(α),β×Y1(α)) of the single point on the elliptic curve E and the operation information indicating the doubling, wherein the transforming step (a) in the first case performs the coordinate transformation on the acquired affine coordinates of the two different points to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α)) (X2(α):Y2(α):β×Z2(α)) of the two different points, and (b) in the second case performs the coordinate transformation on the acquired affine coordinates of the single point to generate Jacobian coordinates (X1(α):Y1(α):β×Z1(α) of the single point, and wherein the operating step (a) in the first case computes U 1(α)=X 1(α)×Z 2(α){circumflex over ( )}2 U 2(α)=X 2(α)×Z 1(α){circumflex over ( )}2 S 1(α)=Y 1(α)×Z 2(α){circumflex over ( )}3 S 2(α)=Y 2(α)×Z 1(α){circumflex over ( )}3 H(α)=U 2(α)−U 1(α) r(α)=S 2(α)−S 1(α) and computes X 3(α)=−H(α){circumflex over ( )}3−2×U 1(α)×H(α){circumflex over ( )}2+r(α){circumflex over ( )}2 Y 3(α)=−S(a)×H(α){circumflex over ( )}3+r(α)×(U 1(α)×H(α){circumflex over ( )}2−X 3(α)) Z 3(a)=Z 1(α)×Z 2(α)×H(α) to obtain Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E, and (b) in the second case computes S(α)=4×X 1(α)×Y 1(α){circumflex over ( )}2 M(α)=3×X 1(α){circumflex over ( )}2+a×Z 1(α){circumflex over ( )}4×f(α){circumflex over ( )}2 T(α)=−2×S(α)+M(α){circumflex over ( )}2 and computes X 3(α)=T(α) Y 3(α)=−8×Y 1(α){circumflex over ( )}4+M(α)×(S(α)−T(α)) Z 3(α)=2×Y 1(α)×Z 1(α) to obtain the Jacobian coordinates (X3(α):Y3(α):β×Z3(α)) of the point on the elliptic curve E.
 30. A computer-readable storage medium storing an elliptic curve construction program used in an elliptic curve construction device equipped with random number generating means, parameter generating means, finitude judging means, order computing means, security judging means, repeat controlling means, and parameter outputting means, for determining parameters of an elliptic curve E which is defined over a finite field GF(p) and offers a high level of security, p being a prime, the elliptic curve construction program comprising: a random number generating step performed by the random number generating means, for generating a random number; a parameter generating step performed by the parameter generating means, for selecting the parameters of the elliptic curve E using the generated random number, in such a manner that a probability of a discriminant of the elliptic curve E having any square factor is lower than a predetermined threshold value; a finitude judging step performed by the finitude judging means, for judging whether the elliptic curve E defined by the selected parameters has any point whose order is finite on a rational number field; an order computing step performed by the order computing means, for computing an order m of the elliptic curve E when the finitude judging step judges that the elliptic curve E does not have any point whose order is finite on the rational number field; a security judging step performed by the security judging means, for judging whether a condition that the computed order m is a prime not equal to the prime p is satisfied; a repeat controlling step performed by the repeat controlling means, for controlling the random number generating step, the parameter generating step, the finitude judging step, the order computing step, and the security judging step respectively to repeat random number generation, parameter selection, finitude judgement, order computation, and security judgement until the condition is satisfied; and a parameter outputting step performed by the parameter outputting means, for outputting the selected parameters when the condition is satisfied.
 31. The storage medium of claim 30, wherein the elliptic curve E is expressed as y{circumflex over ( )}2=x{circumflex over ( )}3+ax+b, where parameters a and b are constants, and wherein the parameter generating step selects −3 and the random number respectively as the parameters a and b so that the probability of the discriminant of the elliptic curve E having any square factor is lower than the predetermined threshold value.
 32. The storage medium of claim 31, wherein the finitude judging step, given two primes p1 and p2 beforehand where p1×p2, interprets the elliptic curve E as an elliptic curve EQ on the rational number field, computes orders m1 and m2 of respective elliptic curves Ep1 and Ep2 which are produced by reducing the elliptic curve EQ modulo p1 and p2, judges whether the orders m1 and m2 are relatively prime, and, if the orders m1 and m2 are relatively prime, judges that the elliptic curve E does not have any point whose order is finite on the rational number field.
 33. The storage medium of claim 32, wherein the finitude judging step, given the primes p1=5 and p2=7 beforehand, computes the orders m1 and m2 of the respective elliptic curves Ep1 and Ep2 produced by reducing the elliptic curve EQ modulo p1=5 and p2=7. 